mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
WebUI: Catch potential undefined error when attempting to disable a plugin
This commit is contained in:
parent
1dd078f4f1
commit
7e71995e55
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ deluge.ui = {
|
|||
},
|
||||
|
||||
onPluginDisabled: function(pluginName) {
|
||||
deluge.plugins[pluginName].disable();
|
||||
if (deluge.plugins[pluginName]) deluge.plugins[pluginName].disable();
|
||||
},
|
||||
|
||||
onPluginLoaded: function(options) {
|
||||
|
|
Loading…
Add table
Reference in a new issue