Skip to content

Commit b3d0d78

Browse files
committed
[core] fix Scramjet v[object Object]
1 parent 6571b44 commit b3d0d78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/worker/error.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export function errorTemplate(trace: string, fetchedURL: string) {
55
fetchedURL.textContent = ${JSON.stringify(fetchedURL)};
66
for (const node of document.querySelectorAll("#hostname")) node.textContent = ${JSON.stringify(location.hostname)};
77
reload.addEventListener("click", () => location.reload());
8-
version.textContent = ${JSON.stringify($scramjetVersion)};
9-
build.textContent = ${JSON.stringify($scramjetVersion)};
8+
version.textContent = ${JSON.stringify($scramjetVersion.version)};
9+
build.textContent = ${JSON.stringify($scramjetVersion.build)};
1010
1111
document.getElementById('copy-button').addEventListener('click', async () => {
1212
const text = document.getElementById('errorTrace').value;

0 commit comments

Comments
 (0)