mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-18 06:16:29 +00:00
WebUI: Catch potential undefined error when attempting to disable a plugin
This commit is contained in:
parent
7c2725acdc
commit
d3f0e00356
@ -256,7 +256,7 @@ deluge.ui = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onPluginDisabled: function(pluginName) {
|
onPluginDisabled: function(pluginName) {
|
||||||
deluge.plugins[pluginName].disable();
|
if (deluge.plugins[pluginName]) deluge.plugins[pluginName].disable();
|
||||||
},
|
},
|
||||||
|
|
||||||
onPluginLoaded: function(options) {
|
onPluginLoaded: function(options) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user