mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-14 04:54:16 +00:00
25 lines
548 B
JavaScript
25 lines
548 B
JavaScript
export default class Settings {
|
|
static get = (key) => {
|
|
if (typeof window === "undefined") {
|
|
return null
|
|
}
|
|
|
|
return window?.app?.cores?.settings.get(key)
|
|
}
|
|
|
|
static set = (key, value) => {
|
|
if (typeof window === "undefined") {
|
|
return null
|
|
}
|
|
|
|
return window?.app?.cores?.settings.set(key, value)
|
|
}
|
|
|
|
static is = (key) => {
|
|
if (typeof window === "undefined") {
|
|
return null
|
|
}
|
|
|
|
return window?.app?.cores?.settings.is(key)
|
|
}
|
|
} |