mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
js: Remove a JavaScript construct that confused emcc -O3
This commit is contained in:
@ -678,8 +678,9 @@ function initPuzzle() {
|
||||
// { "LOOPY_DEFAULT": "20x10t11dh" }
|
||||
// </script>
|
||||
var envscript = document.getElementById("environment");
|
||||
var k, v;
|
||||
if (envscript !== null)
|
||||
for (var [k, v] of
|
||||
for ([k, v] of
|
||||
Object.entries(JSON.parse(envscript.textContent)))
|
||||
ENV[k] = v;
|
||||
};
|
||||
|
Reference in New Issue
Block a user