mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2026-06-13 04:04:59 +03:00
Set default theme music to off
Release Please / release-please (push) Has been cancelled
Release Please / release-please (push) Has been cancelled
Change default behavior of theme music to off if parsing fails.
This commit is contained in:
+1
-1
@@ -1609,7 +1609,7 @@ THEMEMUSIC_CODE = r"""(function () {
|
||||
const data = JSON.parse(localStorage.getItem(LOCAL_STORAGE_KEY) || "{}");
|
||||
return !(data.themeMusic === false || data.themeMusic === "off");
|
||||
} catch {
|
||||
return true; // default ON if parsing fails
|
||||
return false; // default off
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user