Update OldTitleBar.plugin.js

This commit is contained in:
Mirco Wittrien 2020-03-24 09:07:53 +01:00
parent c0927eec64
commit 192b03f937
1 changed files with 10 additions and 9 deletions

View File

@ -6,17 +6,13 @@ var OldTitleBar = (_ => {
return class OldTitleBar {
getName () {return "OldTitleBar";}
getVersion () {return "1.6.5";}
getVersion () {return "1.6.6";}
getAuthor () {return "DevilBro";}
getDescription () {return "Reverts the title bar back to its former self.";}
constructor () {
this.changelog = {
"improved":[["New Library Structure & React","Restructured my Library and switched to React rendering instead of DOM manipulation"]]
};
this.patchedModules = {
after: {
App: "render",
@ -284,11 +280,16 @@ var OldTitleBar = (_ => {
}
patchMainScreen (enable) {
if (BdApi.getWindowPreference("frame") != enable) {
BdApi.setWindowPreference("frame", enable);
return true;
try {
if (BdApi.getWindowPreference("frame") != enable) {
BdApi.setWindowPreference("frame", enable);
return true;
}
return false;
}
catch (err) {
return false;
}
return false;
}
}
})();