mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-23 11:34:06 +02:00
Remove unnecessary code from plugins.notification.js
This commit is contained in:
parent
f13515ba16
commit
2e13d08018
@ -13,22 +13,9 @@
|
|||||||
//
|
//
|
||||||
// Variable: Main object for containing and managing plugins.
|
// Variable: Main object for containing and managing plugins.
|
||||||
//
|
//
|
||||||
window.TD_PLUGINS = new class{
|
window.TD_PLUGINS = {
|
||||||
constructor(){
|
install: function(plugin){
|
||||||
this.installed = [];
|
plugin.obj.run();
|
||||||
this.disabled = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
isDisabled(plugin){
|
|
||||||
return this.disabled.includes(plugin.id);
|
|
||||||
}
|
|
||||||
|
|
||||||
install(plugin){
|
|
||||||
this.installed.push(plugin);
|
|
||||||
|
|
||||||
if (!this.isDisabled(plugin)){
|
|
||||||
plugin.obj.run();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
})();
|
})();
|
Loading…
Reference in New Issue
Block a user