aboutsummaryrefslogtreecommitdiff
path: root/emccpre.js
diff options
context:
space:
mode:
Diffstat (limited to 'emccpre.js')
-rw-r--r--emccpre.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/emccpre.js b/emccpre.js
index 7bdc2d6..d9ecd8c 100644
--- a/emccpre.js
+++ b/emccpre.js
@@ -515,7 +515,7 @@ function initPuzzle() {
// Run the C setup function, passing argv[1] as the fragment
// identifier (so that permalinks of the form puzzle.html#game-id
// can launch the specified id).
- Module.callMain([location.hash]);
+ Module.callMain([decodeURIComponent(location.hash)]);
// And if we get here with everything having gone smoothly, i.e.
// we haven't crashed for one reason or another during setup, then