Fix crash

This commit is contained in:
Guangcong Luo
2020-03-24 03:02:26 -07:00
parent 3bc86dc0e1
commit 04220979e7
2 changed files with 5 additions and 5 deletions

View File

@@ -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>

View File

@@ -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();
}
});