Update better-xcloud.user.js

This commit is contained in:
redphx 2025-01-28 06:33:10 +07:00 committed by GitHub
parent ee4055e169
commit 91c8172564
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5440,7 +5440,7 @@ class SettingsManager {
getElement(pref, params) {
if (!this.SETTINGS[pref]) this.SETTINGS[pref] = {};
let $elm = this.SETTINGS[pref].$element;
if (!$elm) $elm = SettingElement.fromPref(pref, () => {}, params), this.SETTINGS[pref].$element = $elm;
if (!$elm) $elm = SettingElement.fromPref(pref, null, params), this.SETTINGS[pref].$element = $elm;
return this.updateDataset($elm, pref), $elm;
}
updateDataset($elm, pref) {