From 192b03f9376f6439d723911631decbe3106ea9c1 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Tue, 24 Mar 2020 09:07:53 +0100 Subject: [PATCH] Update OldTitleBar.plugin.js --- Plugins/OldTitleBar/OldTitleBar.plugin.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Plugins/OldTitleBar/OldTitleBar.plugin.js b/Plugins/OldTitleBar/OldTitleBar.plugin.js index 2f47b32445..6138ffa039 100644 --- a/Plugins/OldTitleBar/OldTitleBar.plugin.js +++ b/Plugins/OldTitleBar/OldTitleBar.plugin.js @@ -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; } } })(); \ No newline at end of file