mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-09 06:15:49 +02:00
Delete plugin properties when disabling them
This commit is contained in:
parent
564b4283b6
commit
64d32dcb75
Resources
@ -61,7 +61,7 @@ enabled(){
|
||||
this.injectDeciderReplyHook(obj && obj.revertReplies);
|
||||
};
|
||||
|
||||
if (this.wasLoadedBefore){
|
||||
if (this.$$wasLoadedBefore){
|
||||
this.onStageReady();
|
||||
}
|
||||
else{
|
||||
@ -78,7 +78,7 @@ enabled(){
|
||||
case "largest": this.defaultConfig.fontSize = "16px"; break;
|
||||
}
|
||||
|
||||
this.wasLoadedBefore = true;
|
||||
this.$$wasLoadedBefore = true;
|
||||
this.onStageReady();
|
||||
});
|
||||
}
|
||||
|
@ -70,6 +70,12 @@
|
||||
else{
|
||||
this.disabled.push(plugin.id);
|
||||
plugin.obj.disabled();
|
||||
|
||||
for(let key of Object.keys(plugin.obj)){
|
||||
if (key[0] !== '$'){
|
||||
delete plugin.obj[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user