Skip to content

Commit

Permalink
Fix for deno 2
Browse files Browse the repository at this point in the history
  • Loading branch information
porsager committed Oct 25, 2024
1 parent f84f21a commit 5fb70c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transpile.deno.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function transpile(x, name, folder) {
.replace('{ spawnSync }', '{ spawn }')
}
if (name === 'index.js')
x += '\n;window.addEventListener("unload", () => Deno.exit(process.exitCode))'
x += '\n;globalThis.addEventListener("unload", () => Deno.exit(process.exitCode))'
}

const buffer = x.includes('Buffer')
Expand Down

0 comments on commit 5fb70c1

Please sign in to comment.