mirror of
https://github.com/Lightcord/Lightcord.git
synced 2025-04-12 00:55:40 +02:00
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…
x
Reference in New Issue
Block a user