Feature/#32 option menu #112

Merged
Serraniel merged 31 commits from feature/#32-option-menu into develop 2020-11-09 17:28:43 +01:00
Showing only changes of commit 0c2621f3a6 - Show all commits

View file

@ -0,0 +1,39 @@
import { assigned } from "../utils/helpers";
class Configuration {
constructor() {
// website
this.websiteDisplayQuickSearch = true;
this.websiteShowNotificationsCountInTab = true;
this.websiteHideUnusedTabs = true;
this.websiteOptimizeListAppearance = true;
// anime
this.animeLanguageDisplay = true;
// requests
this.requestBeautifyPage = true;
// player
this.playerAutoplayAfterScreenshot = true;
// w2g
this.w2gDisplayCharacterCounter = true;
this.reloadConfiguration();
}
reloadConfiguration() {
Serraniel commented 2020-11-08 13:20:31 +01:00 (Migrated from github.com)
Review

This should be refactored and improved after #48 .

This should be refactored and improved after #48 .
}
}
let __globalConfig = undefined;
export function getGlobalConfiguration() {
if (!assigned(__globalConfig)) {
__globalConfig = new Configuration();
}
return __globalConfig;
}