Commit 6293c06
Worker: escape \n in loading-page renderLog so JS is valid
Inside loadingPage()'s template literal, .join('\n') was being
interpreted by the outer TS template — emitting a literal newline
inside a JS string in the rendered HTML. That makes the JS a syntax
error, so dispatch() never fires and the loading page sticks on
"Triggering mining job…" with elapsed frozen at 00:00. Visitors
never got mined because the trigger never happened.
Fix: use '\\n' so the rendered JS contains '\n' (a real escape).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4393886 commit 6293c06
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
840 | 840 | | |
841 | 841 | | |
842 | 842 | | |
843 | | - | |
| 843 | + | |
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
| |||
0 commit comments