mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-22 00:15:46 -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" }
|
// { "LOOPY_DEFAULT": "20x10t11dh" }
|
||||||
// </script>
|
// </script>
|
||||||
var envscript = document.getElementById("environment");
|
var envscript = document.getElementById("environment");
|
||||||
|
var k, v;
|
||||||
if (envscript !== null)
|
if (envscript !== null)
|
||||||
for (var [k, v] of
|
for ([k, v] of
|
||||||
Object.entries(JSON.parse(envscript.textContent)))
|
Object.entries(JSON.parse(envscript.textContent)))
|
||||||
ENV[k] = v;
|
ENV[k] = v;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user