Compare commits
5 Commits
cbe5733fcd
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
aa9c18346d
|
|||
|
a2f06c977e
|
|||
|
58e2cf3e1f
|
|||
|
efdae93d90
|
|||
|
804626ddad
|
@@ -29,7 +29,7 @@ and use the system from there.
|
|||||||
|
|
||||||
However, since everything is bootstrapped on the client, basically any
|
However, since everything is bootstrapped on the client, basically any
|
||||||
HTTP server will do as long as it sets the appropriate response
|
HTTP server will do as long as it sets the appropriate response
|
||||||
headers for `SharedMemoryBuffer` use:
|
headers for `SharedArrayBuffer` use:
|
||||||
|
|
||||||
- `Cross-Origin-Opener-Policy: same-origin`
|
- `Cross-Origin-Opener-Policy: same-origin`
|
||||||
- `Cross-Origin-Embedder-Policy: require-corp`
|
- `Cross-Origin-Embedder-Policy: require-corp`
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
|
asm.js
|
||||||
boot.js
|
boot.js
|
||||||
emu.js
|
emu.js
|
||||||
|
favicon.png
|
||||||
index.html
|
index.html
|
||||||
prelude.f
|
prelude.f
|
||||||
styles.css
|
styles.css
|
||||||
|
|||||||
12
emu.js
12
emu.js
@@ -347,6 +347,16 @@ class Emulator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.addEventListener('DOMContentLoaded', () => {
|
window.addEventListener('DOMContentLoaded', () => {
|
||||||
document.getElementById('output').innerText = '';
|
const output = document.getElementById('output');
|
||||||
|
output.innerText = '';
|
||||||
|
|
||||||
|
if (!self.crossOriginIsolated) {
|
||||||
|
output.innerText = "Yeah so there's this thing where Chromium ends "
|
||||||
|
+ "up ignoring COOP/COEP\nheaders after a hard reload "
|
||||||
|
+ "sometimes, and I haven't been able to\nfigure out how to "
|
||||||
|
+ "work around it yet. If you just wait a little while\nand "
|
||||||
|
+ "then reload normally then hopefully it should work haha";
|
||||||
|
} else {
|
||||||
window.emu = new Emulator();
|
window.emu = new Emulator();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -7,8 +7,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script type="text/javascript" src="emu.js"></script>
|
<script type="text/javascript" src="emu.js"></script>
|
||||||
<div id="output">I'm afraid you need javascript enabled for this to work :(
|
<div id="output"><noscript>I'm afraid you need javascript enabled for this to work :(
|
||||||
|
|
||||||
cringe, I know... but I promise there are no frameworks™</div>
|
cringe, I know... but I promise there are no frameworks™</noscript></div></body>
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user