Overriding properties
This commit is contained in:
parent
1cdc0efc9c
commit
131c276eb1
|
@ -16,19 +16,19 @@ export default class Utils {
|
||||||
static getAllWindowPreferences() {
|
static getAllWindowPreferences() {
|
||||||
return {
|
return {
|
||||||
transparent: true,
|
transparent: true,
|
||||||
frame: settingsCookie.frame
|
frame: false
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
static getWindowPreference(key) {
|
static getWindowPreference(key) {
|
||||||
if (key === "transparent") return true;
|
if (key === "transparent") return true;
|
||||||
if (key === "frame") return settingsCookie.frame;
|
if (key === "frame") return false;
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
static setWindowPreference(key, value) {
|
static setWindowPreference(key, value) {
|
||||||
if (key === "transparent") return true;
|
if (key === "transparent") return true;
|
||||||
if (key === "frame") return settingsCookie.frame = value;
|
if (key === "frame") return false;
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue