Update CompleteTimestamps.plugin.js

This commit is contained in:
Mirco Wittrien 2020-01-25 18:22:56 +01:00
parent 0c8c24763b
commit 3b38e8fe2d
1 changed files with 3 additions and 7 deletions

View File

@ -185,13 +185,9 @@ class CompleteTimestamps {
this.languages = Object.assign({"own":{name:"Own",id:"own",integrated:false,dic:false}}, BDFDB.LanguageUtils.languages); this.languages = Object.assign({"own":{name:"Own",id:"own",integrated:false,dic:false}}, BDFDB.LanguageUtils.languages);
let SystemMessageExports = (BDFDB.ModuleUtils.findByName("SystemMessage", false) || {}).exports; BDFDB.ModuleUtils.patch(this, (BDFDB.ModuleUtils.findByName("SystemMessage", false) || {}).exports, "default", {after: e => {
if (SystemMessageExports) {
BDFDB.ModuleUtils.patch(this, SystemMessageExports, "default", {after: e => {
this.processSystemMessage({instance:{props:e.methodArguments[0]}, returnvalue:e.returnValue, methodname:"default"}); this.processSystemMessage({instance:{props:e.methodArguments[0]}, returnvalue:e.returnValue, methodname:"default"});
}}); }});
SystemMessageExports.default.displayName = "SystemMessage";
}
BDFDB.ModuleUtils.forceAllUpdates(this); BDFDB.ModuleUtils.forceAllUpdates(this);
} }