mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-05 12:56:42 +02:00
Update better-xcloud.user.js
This commit is contained in:
7
dist/better-xcloud.user.js
vendored
7
dist/better-xcloud.user.js
vendored
@@ -1188,7 +1188,12 @@ class BaseSettingsStore {
|
|||||||
_settings;
|
_settings;
|
||||||
definitions;
|
definitions;
|
||||||
constructor(storageKey, definitions) {
|
constructor(storageKey, definitions) {
|
||||||
this.storage = window.localStorage, this.storageKey = storageKey, this.definitions = definitions, this._settings = null;
|
this.storage = window.localStorage, this.storageKey = storageKey;
|
||||||
|
for (let settingId in definitions) {
|
||||||
|
const setting = definitions[settingId];
|
||||||
|
setting.ready && setting.ready.call(this, setting);
|
||||||
|
}
|
||||||
|
this.definitions = definitions, this._settings = null;
|
||||||
}
|
}
|
||||||
get settings() {
|
get settings() {
|
||||||
if (this._settings)
|
if (this._settings)
|
||||||
|
Reference in New Issue
Block a user