mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-02 03:16: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;
|
||||
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() {
|
||||
if (this._settings)
|
||||
|
Reference in New Issue
Block a user