Overriding properties

This commit is contained in:
Jean Ouina 2020-05-26 16:14:35 +02:00
parent 1cdc0efc9c
commit 131c276eb1
1 changed files with 3 additions and 3 deletions

View File

@ -16,19 +16,19 @@ export default class Utils {
static getAllWindowPreferences() {
return {
transparent: true,
frame: settingsCookie.frame
frame: false
};
}
static getWindowPreference(key) {
if (key === "transparent") return true;
if (key === "frame") return settingsCookie.frame;
if (key === "frame") return false;
return null;
}
static setWindowPreference(key, value) {
if (key === "transparent") return true;
if (key === "frame") return settingsCookie.frame = value;
if (key === "frame") return false;
return null;
}