Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2020-09-30 17:50:04 +02:00 committed by GitHub
parent 841e77c4ba
commit e9fbc5db50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -3876,13 +3876,13 @@ module.exports = (_ => {
}
};
BDFDB.DiscordUtils.isDevModeEnabled = function () {
return LibraryModules.StoreChangeUtils.get("UserSettingsStore").developerMode;
return (LibraryModules.StoreChangeUtils.get("UserSettingsStore") || {}).developerMode;
};
BDFDB.DiscordUtils.getTheme = function () {
return LibraryModules.StoreChangeUtils.get("UserSettingsStore").theme == "dark" ? BDFDB.disCN.themedark : BDFDB.disCN.themelight;
return (LibraryModules.StoreChangeUtils.get("UserSettingsStore") || {}).theme != "dark" ? BDFDB.disCN.themelight : BDFDB.disCN.themedark;
};
BDFDB.DiscordUtils.getMode = function () {
return LibraryModules.StoreChangeUtils.get("UserSettingsStore").message_display_compact ? "compact" : "cozy";
return (LibraryModules.StoreChangeUtils.get("UserSettingsStore") || {}).message_display_compact ? "compact" : "cozy";
};
BDFDB.DiscordUtils.getZoomFactor = function () {
let aRects = BDFDB.DOMUtils.getRects(document.querySelector(BDFDB.dotCN.appmount));