Skip to content

Commit 8da6307

Browse files
committed
Get icons back on shell.html
It seems there is some related issue on emscripten side... but I'll keep the icons here despite not displayed properly for the moment.
1 parent e469f4e commit 8da6307

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/shell.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@
173173
<div class="emscripten" id="status">Downloading...</div>
174174

175175
<span id='controls'>
176-
<span><input type="button" value="FULLSCREEN" onclick="Module.requestFullscreen(false, false)"></span>
177-
<span><input type="button" id="btn-audio" value="AUDIO OFF" onclick="toggleAudio()"></span>
176+
<span><input type="button" value="🖵 FULLSCREEN" onclick="Module.requestFullscreen(false, false)"></span>
177+
<span><input type="button" id="btn-audio" value="🔇 SUSPEND" onclick="toggleAudio()"></span>
178178
</span>
179179

180180
<div class="emscripten">
@@ -305,7 +305,7 @@
305305
construct(target, args) {
306306
const result = new target(...args);
307307
audioContexList.push(result);
308-
if (result.state == "suspended") audioBtn.value = "AUDIO ON";
308+
if (result.state == "suspended") audioBtn.value = "🔈 RESUME";
309309
return result;
310310
}
311311
});
@@ -318,8 +318,8 @@
318318
else if (ctx.state == "running") ctx.suspend();
319319
});
320320

321-
if (resumed) audioBtn.value = "AUDIO OFF";
322-
else audioBtn.value = "AUDIO ON";
321+
if (resumed) audioBtn.value = "🔇 SUSPEND";
322+
else audioBtn.value = "🔈 RESUME";
323323
}
324324
</script>
325325
{{{ SCRIPT }}}

0 commit comments

Comments
 (0)