Skip to content

Commit

Permalink
Live viewer: fix in browsers that don't expose the SAB global
Browse files Browse the repository at this point in the history
Closes #168.
  • Loading branch information
domenic committed Sep 2, 2020
1 parent 3052b3b commit 2083a47
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions live-viewer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
<meta charset="utf-8">
<title>Live URL Viewer</title>
<link rel="stylesheet" href="style.css">

<script>
// whatwg-url.js depends on SharedArrayBuffer being global, but we can't set COOP+COEP headers on
// GitHub pages.
window.SharedArrayBuffer =
new WebAssembly.Memory({ shared:true, initial:1, maximum:1 }).buffer.constructor;
</script>
<script src="whatwg-url.js"></script>

<h1>Live URL Viewer</h1>
Expand Down

0 comments on commit 2083a47

Please sign in to comment.