Update MoveablePopups.plugin.js

This commit is contained in:
Mirco Wittrien 2019-10-16 21:31:47 +02:00
parent cd508d4536
commit 85bc417574
1 changed files with 2 additions and 8 deletions

View File

@ -3,18 +3,12 @@
class MoveablePopups {
getName () {return "MoveablePopups";}
getVersion () {return "1.1.3";}
getVersion () {return "1.1.4";}
getAuthor () {return "DevilBro";}
getDescription () {return "Adds the feature to move all popups and modals around like on a normal desktop. Ctrl + drag with your left mousebutton to drag element.";}
constructor () {
this.changelog = {
"fixed":[["Moved Modal Container","Fixed selector for new modal container"]]
};
}
//legacy
load () {}
@ -88,7 +82,7 @@ class MoveablePopups {
}
);
});
BDFDB.addObserver(this, BDFDB.React.findDOMNodeSafe(BDFDB.getOwnerInstance({node:document.querySelector(BDFDB.dotCN.app), name:"Modals"})), {name:"modalObserver",instance:observer}, {childList: true});
BDFDB.addObserver(this, BDFDB.React.findDOMNode(BDFDB.getOwnerInstance({node:document.querySelector(BDFDB.dotCN.app), name:"Modals"})), {name:"modalObserver",instance:observer}, {childList: true});
}
else {
console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');