mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-09 06:15:49 +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.
|
||||
//
|
||||
window.TD_PLUGINS = new class{
|
||||
constructor(){
|
||||
this.installed = [];
|
||||
this.disabled = [];
|
||||
}
|
||||
|
||||
isDisabled(plugin){
|
||||
return this.disabled.includes(plugin.id);
|
||||
}
|
||||
|
||||
install(plugin){
|
||||
this.installed.push(plugin);
|
||||
|
||||
if (!this.isDisabled(plugin)){
|
||||
plugin.obj.run();
|
||||
}
|
||||
window.TD_PLUGINS = {
|
||||
install: function(plugin){
|
||||
plugin.obj.run();
|
||||
}
|
||||
};
|
||||
})();
|
Loading…
Reference in New Issue
Block a user