mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-08-22 02:51:35 -05:00
Fix crash
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>Showdown!</title>
|
||||
<link rel="shortcut icon" href="favicon.ico" id="dynamic-favicon" />
|
||||
<link rel="stylesheet" href="/style/battle.css" />
|
||||
<link rel="stylesheet" href="/style/client2.css" />
|
||||
<link rel="stylesheet" href="/style/battle.css?" />
|
||||
<link rel="stylesheet" href="/style/client2.css?" />
|
||||
<meta name="robots" content="noindex" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
|
||||
<!--[if lte IE 8]><script>
|
||||
|
||||
@@ -2796,9 +2796,9 @@ const BattleSound = new class {
|
||||
if (typeof PS === 'object') {
|
||||
PS.prefs.subscribeAndRun(key => {
|
||||
if (!key || key === 'musicvolume' || key === 'effectvolume' || key === 'mute') {
|
||||
BattleSound.effectVolume = PS.prefs.effectvolume;
|
||||
BattleSound.bgmVolume = PS.prefs.musicvolume;
|
||||
BattleSound.muted = PS.prefs.mute;
|
||||
this.effectVolume = PS.prefs.effectvolume;
|
||||
this.bgmVolume = PS.prefs.musicvolume;
|
||||
this.muted = PS.prefs.mute;
|
||||
BattleBGM.update();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user