Fix download savestate with apostrophe (Emscripten)

This commit is contained in:
infvaL 2019-08-01 22:08:24 +03:00
parent 3013e076cd
commit 678d522048
2 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,6 @@
A Watara Supervision Emulator based on Normmatt version.
## Previous README
https://github.com/infval/potator/tree/master/platform/opendingux
[/platform/opendingux](/platform/opendingux)
https://github.com/infval/potator/tree/master/platform/GP2X
[/platform/GP2X](/platform/GP2X)

View File

@ -815,7 +815,7 @@
ss.innerHTML = fileNames.map((e) =>
'<tr>\
<td>\
' + e + '<button onclick="saveFile(\'' + e + '\')" style="float: right;">Download</button>\
' + e + '<button onclick="saveFile(\'' + e.replace(/'/g, "\\'") + '\')" style="float: right;">Download</button>\
</td>\
</tr>'
).join('');