From f6a7a78be7dc70fd18b9a0e4b124629a2a18984f Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Fri, 5 Apr 2024 21:45:40 +0700 Subject: [PATCH] Fix exception in settings --- better-xcloud.user.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/better-xcloud.user.js b/better-xcloud.user.js index 04721e2..b0129c2 100644 --- a/better-xcloud.user.js +++ b/better-xcloud.user.js @@ -10575,11 +10575,14 @@ function injectSettingsButton($parent) { for (let settingId in SETTINGS_UI[groupLabel]) { // Don't render custom settings - if (!settingId || settingId === 'undefined' || settingId.startsWith('_')) { + if (!settingId || settingId === 'false' || settingId === 'undefined' || settingId.startsWith('_')) { continue; } const setting = Preferences.SETTINGS[settingId]; + if (!setting) { + continue; + } const settingLabel = SETTINGS_UI[groupLabel][settingId]; const settingNote = setting.note;