diff --git a/better-xcloud.user.js b/better-xcloud.user.js index ebcff0d..c7a32ab 100644 --- a/better-xcloud.user.js +++ b/better-xcloud.user.js @@ -2246,9 +2246,6 @@ function injectVideoSettingsButton() { function patchVideoApi() { - // Get title ID for screenshot's name - GAME_TITLE_ID = /\/launch\/([^/]+)/.exec(window.location.pathname)[1]; - const PREF_SKIP_SPLASH_VIDEO = PREFS.get(Preferences.SKIP_SPLASH_VIDEO); const PREF_SCREENSHOT_BUTTON_POSITION = PREFS.get(Preferences.SCREENSHOT_BUTTON_POSITION); @@ -2547,6 +2544,9 @@ function onHistoryChanged() { function onStreamStarted($video) { + // Get title ID for screenshot's name + GAME_TITLE_ID = /\/launch\/([^/]+)/.exec(window.location.pathname)[1]; + const PREF_SCREENSHOT_BUTTON_POSITION = PREFS.get(Preferences.SCREENSHOT_BUTTON_POSITION); const PREF_STATS_QUICK_GLANCE = PREFS.get(Preferences.STATS_QUICK_GLANCE);