From aa9c18346de5689611665cc13ac743ddc6474d1b Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Sat, 21 Mar 2026 23:16:16 +0000 Subject: [PATCH] Add message for when chromium hard reload bug breaks things --- emu.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/emu.js b/emu.js index 11f497d..bf413d1 100644 --- a/emu.js +++ b/emu.js @@ -347,6 +347,16 @@ class Emulator { } window.addEventListener('DOMContentLoaded', () => { - document.getElementById('output').innerText = ''; - window.emu = new Emulator(); + 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(); + } });