From 66ab74c48a035dab34177053403e75aca899bb8a Mon Sep 17 00:00:00 2001 From: Tristyn Russelo Date: Sun, 30 Aug 2026 21:28:53 -0600 Subject: [PATCH 1/5] Replace generic on-canvas error with a clear message for HTTPS-required cores EmulatorJS's own downloadGameCore() shows a bare "Error for site owner / Check console" when a threaded core (dosbox_pure, ppsspp, azahar, scummvm) can't get SharedArrayBuffer -- which happens on any non-secure origin regardless of server headers. That message gives the player no actionable information and only appears deep inside vendored EmulatorJS code we don't own, so patch around it instead: check the same condition before ever handing off to the emulator, and show a real explanation via the app's existing snackbar. Co-Authored-By: Claude Sonnet 5 --- frontend/src/views/Player/EmulatorJS/Base.vue | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/Player/EmulatorJS/Base.vue b/frontend/src/views/Player/EmulatorJS/Base.vue index 23bdb895c..375fcfd04 100644 --- a/frontend/src/views/Player/EmulatorJS/Base.vue +++ b/frontend/src/views/Player/EmulatorJS/Base.vue @@ -17,7 +17,7 @@ import storeConfig from "@/stores/config"; import storePlaying from "@/stores/playing"; import { type DetailedRom } from "@/stores/roms"; import type { Events } from "@/types/emitter"; -import { getSupportedEJSCores } from "@/utils"; +import { areThreadsRequiredForEJSCore, getSupportedEJSCores } from "@/utils"; import CacheDialog from "@/views/Player/EmulatorJS/CacheDialog.vue"; import Player from "@/views/Player/EmulatorJS/Player.vue"; import { installIOSFullscreenShim } from "./utils"; @@ -60,6 +60,27 @@ const compatibleStates = computed( ); async function onPlay() { + // Threaded cores (dosbox_pure, ppsspp, azahar, scummvm) need + // SharedArrayBuffer, which browsers only expose on a secure context + // (HTTPS, or localhost) -- regardless of what headers the server sends. + // Left unchecked, EmulatorJS's own loader still attempts to boot and + // fails deep inside its own code with a generic on-canvas + // "Error for site owner / Check console" that gives the player no + // actionable information. Catch it here instead, before ever loading + // the emulator, with a message that says what's actually wrong. + if ( + selectedCore.value && + areThreadsRequiredForEJSCore(selectedCore.value) && + typeof window.SharedArrayBuffer !== "function" + ) { + emitter?.emit("snackbarShow", { + msg: "Must be run over HTTPS. Contact the site owner.", + icon: "mdi-lock-alert", + color: "red", + }); + return; + } + removeIOSFullscreenShim.value?.(); removeIOSFullscreenShim.value = installIOSFullscreenShim(); From 8faa2d1625c867b33c12202fa9c5eb319badc616 Mon Sep 17 00:00:00 2001 From: Tristyn Russelo Date: Sun, 30 Aug 2026 21:47:19 -0600 Subject: [PATCH 2/5] Apply the HTTPS-required error message fix to the v2 player too The previous commit only patched v1's Base.vue -- this ROMM instance runs uiVersion=v2, which routes rom/:rom/ejs to a completely separate component (v2/views/Player/EmulatorJS.vue) with its own onPlay(). Same guard, ported to v2's conventions (useSnackbar + i18n key instead of the raw emitter call v1 uses). Co-Authored-By: Claude Sonnet 5 --- frontend/src/locales/en_US/play.json | 1 + frontend/src/v2/views/Player/EmulatorJS.vue | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/frontend/src/locales/en_US/play.json b/frontend/src/locales/en_US/play.json index c078c9e08..b4264b9bf 100644 --- a/frontend/src/locales/en_US/play.json +++ b/frontend/src/locales/en_US/play.json @@ -14,6 +14,7 @@ "deselect-save": "Deselect save", "deselect-state": "Deselect state", "full-screen": "Full screen", + "https-required": "Must be run over HTTPS. Contact the site owner.", "jsdos-browser-save-warning": "js-dos saves are stored only in this browser and are not synced with RomM.", "jsdos-quit-without-saving": "Quit without saving recent progress?", "no-save-selected": "No save selected", diff --git a/frontend/src/v2/views/Player/EmulatorJS.vue b/frontend/src/v2/views/Player/EmulatorJS.vue index e572df71f..b478d744f 100644 --- a/frontend/src/v2/views/Player/EmulatorJS.vue +++ b/frontend/src/v2/views/Player/EmulatorJS.vue @@ -45,7 +45,7 @@ import storeConfig from "@/stores/config"; import storePlaying from "@/stores/playing"; import type { DetailedRom } from "@/stores/roms"; import type { Events } from "@/types/emitter"; -import { getSupportedEJSCores } from "@/utils"; +import { areThreadsRequiredForEJSCore, getSupportedEJSCores } from "@/utils"; import AssetPreview from "@/v2/components/Player/AssetPreview.vue"; import AssetList from "@/v2/components/shared/AssetList.vue"; import AssetStrip from "@/v2/components/shared/AssetStrip.vue"; @@ -56,6 +56,7 @@ import { useInputModality } from "@/v2/composables/useInputModality"; import { usePlaySession } from "@/v2/composables/usePlaySession"; import { usePlayerHero } from "@/v2/composables/usePlayerHero"; import { usePlayerNav } from "@/v2/composables/usePlayerNav"; +import { useSnackbar } from "@/v2/composables/useSnackbar"; import type { SliderBtnGroupItem } from "@/v2/lib/primitives/RSliderBtnGroup/types"; import { resolveBezelHost, @@ -81,6 +82,7 @@ const Player = defineAsyncComponent( ); const { t } = useI18n(); +const snackbar = useSnackbar(); const emitter = inject>("emitter"); const auth = storeAuth(); const playingStore = storePlaying(); @@ -229,6 +231,23 @@ useEventListener(document, "fullscreenchange", () => { }); async function onPlay() { + // Threaded cores (dosbox_pure, ppsspp, azahar, scummvm) need + // SharedArrayBuffer, which browsers only expose on a secure context + // (HTTPS, or localhost) -- regardless of what headers the server sends. + // Left unchecked, EmulatorJS's own loader still attempts to boot and + // fails deep inside its own code with a generic on-canvas + // "Error for site owner / Check console" that gives the player no + // actionable information. Catch it here instead, before ever loading + // the emulator, with a message that says what's actually wrong. + if ( + selectedCore.value && + areThreadsRequiredForEJSCore(selectedCore.value) && + typeof window.SharedArrayBuffer !== "function" + ) { + snackbar.error(t("play.https-required")); + return; + } + // Launch flourish on the visible cover (disc drop+spin / cartridge // slot-in) before booting, so the insert is seen. Returns 0 for non- // physical styles / reduced motion → no delay. From 692b88da261afee2831612a49e0357a06638dcb9 Mon Sep 17 00:00:00 2001 From: Tristyn Russelo Date: Tue, 1 Sep 2026 21:47:03 -0600 Subject: [PATCH 3/5] Revert the v1 HTTPS-required fix -- v1 UI is frozen frontend/src/views/ is frozen per this repo's v1-freeze policy (new frontend work goes in frontend/src/v2/ only); this reverts Base.vue to its pre-PR state. The real fix already lives in v2's EmulatorJS.vue (previous commit), which is what actually serves players on this instance (uiVersion=v2). Co-Authored-By: Claude Sonnet 5 --- frontend/src/views/Player/EmulatorJS/Base.vue | 23 +------------------ 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/frontend/src/views/Player/EmulatorJS/Base.vue b/frontend/src/views/Player/EmulatorJS/Base.vue index 375fcfd04..23bdb895c 100644 --- a/frontend/src/views/Player/EmulatorJS/Base.vue +++ b/frontend/src/views/Player/EmulatorJS/Base.vue @@ -17,7 +17,7 @@ import storeConfig from "@/stores/config"; import storePlaying from "@/stores/playing"; import { type DetailedRom } from "@/stores/roms"; import type { Events } from "@/types/emitter"; -import { areThreadsRequiredForEJSCore, getSupportedEJSCores } from "@/utils"; +import { getSupportedEJSCores } from "@/utils"; import CacheDialog from "@/views/Player/EmulatorJS/CacheDialog.vue"; import Player from "@/views/Player/EmulatorJS/Player.vue"; import { installIOSFullscreenShim } from "./utils"; @@ -60,27 +60,6 @@ const compatibleStates = computed( ); async function onPlay() { - // Threaded cores (dosbox_pure, ppsspp, azahar, scummvm) need - // SharedArrayBuffer, which browsers only expose on a secure context - // (HTTPS, or localhost) -- regardless of what headers the server sends. - // Left unchecked, EmulatorJS's own loader still attempts to boot and - // fails deep inside its own code with a generic on-canvas - // "Error for site owner / Check console" that gives the player no - // actionable information. Catch it here instead, before ever loading - // the emulator, with a message that says what's actually wrong. - if ( - selectedCore.value && - areThreadsRequiredForEJSCore(selectedCore.value) && - typeof window.SharedArrayBuffer !== "function" - ) { - emitter?.emit("snackbarShow", { - msg: "Must be run over HTTPS. Contact the site owner.", - icon: "mdi-lock-alert", - color: "red", - }); - return; - } - removeIOSFullscreenShim.value?.(); removeIOSFullscreenShim.value = installIOSFullscreenShim(); From 5088a3bbc4d44a80f18dfc8e6c291c6d49c3f77a Mon Sep 17 00:00:00 2001 From: Tristyn Russelo Date: Tue, 1 Sep 2026 21:47:20 -0600 Subject: [PATCH 4/5] Add https-required translations for all remaining locales The previous commit only added the new play.https-required key to en_US, which fails the check-translations CI job for every other supported locale. Adds a natural translation of "Must be run over HTTPS. Contact the site owner." to all 17 remaining locale files, matching each file's existing formality register (e.g. informal du/tu/ty in de_DE/es_ES/pl_PL, formal vy/vous in cs_CZ/fr_FR/ru_RU). Co-Authored-By: Claude Sonnet 5 --- frontend/src/locales/bg_BG/play.json | 1 + frontend/src/locales/cs_CZ/play.json | 1 + frontend/src/locales/de_DE/play.json | 1 + frontend/src/locales/en_GB/play.json | 1 + frontend/src/locales/es_ES/play.json | 1 + frontend/src/locales/fr_FR/play.json | 1 + frontend/src/locales/hu_HU/play.json | 1 + frontend/src/locales/it_IT/play.json | 1 + frontend/src/locales/ja_JP/play.json | 1 + frontend/src/locales/ko_KR/play.json | 1 + frontend/src/locales/pl_PL/play.json | 1 + frontend/src/locales/pt_BR/play.json | 1 + frontend/src/locales/ro_RO/play.json | 1 + frontend/src/locales/ru_RU/play.json | 1 + frontend/src/locales/tr_TR/play.json | 1 + frontend/src/locales/zh_CN/play.json | 1 + frontend/src/locales/zh_TW/play.json | 1 + 17 files changed, 17 insertions(+) diff --git a/frontend/src/locales/bg_BG/play.json b/frontend/src/locales/bg_BG/play.json index df6377421..476ae7f41 100644 --- a/frontend/src/locales/bg_BG/play.json +++ b/frontend/src/locales/bg_BG/play.json @@ -14,6 +14,7 @@ "deselect-save": "Отмени избрания запис", "deselect-state": "Отмени избрания бърз запис", "full-screen": "Цял екран", + "https-required": "Трябва да се стартира през HTTPS. Свържи се със собственика на сайта.", "jsdos-browser-save-warning": "Запазените данни на js-dos се съхраняват само в този браузър и не се синхронизират с RomM.", "jsdos-quit-without-saving": "Изход без запазване на скорошния напредък?", "no-save-selected": "Няма избран запис", diff --git a/frontend/src/locales/cs_CZ/play.json b/frontend/src/locales/cs_CZ/play.json index 494e563d9..8ab1d76ea 100644 --- a/frontend/src/locales/cs_CZ/play.json +++ b/frontend/src/locales/cs_CZ/play.json @@ -14,6 +14,7 @@ "deselect-save": "Zrušit výběr uložené pozice", "deselect-state": "Zrušit výběr stavu", "full-screen": "Celá obrazovka", + "https-required": "Musí být spuštěno přes HTTPS. Kontaktujte vlastníka webu.", "jsdos-browser-save-warning": "Pozice js-dos se ukládají pouze v tomto prohlížeči a nesynchronizují se s RomM.", "jsdos-quit-without-saving": "Ukončit bez uložení posledního postupu?", "no-save-selected": "Není vybrána žádná uložená pozice", diff --git a/frontend/src/locales/de_DE/play.json b/frontend/src/locales/de_DE/play.json index 5a7c9f61f..95fcbc6ee 100644 --- a/frontend/src/locales/de_DE/play.json +++ b/frontend/src/locales/de_DE/play.json @@ -14,6 +14,7 @@ "deselect-save": "Speicherstand abwählen", "deselect-state": "Speicherstand abwählen", "full-screen": "Vollbild", + "https-required": "Muss über HTTPS ausgeführt werden. Kontaktiere den Website-Betreiber.", "jsdos-browser-save-warning": "js-dos-Spielstände werden nur in diesem Browser gespeichert und nicht mit RomM synchronisiert.", "jsdos-quit-without-saving": "Beenden, ohne den letzten Fortschritt zu speichern?", "no-save-selected": "Kein Speicherstand ausgewählt", diff --git a/frontend/src/locales/en_GB/play.json b/frontend/src/locales/en_GB/play.json index bb0bf304e..81d9b2608 100644 --- a/frontend/src/locales/en_GB/play.json +++ b/frontend/src/locales/en_GB/play.json @@ -14,6 +14,7 @@ "deselect-save": "Deselect save", "deselect-state": "Deselect state", "full-screen": "Full screen", + "https-required": "Must be run over HTTPS. Contact the site owner.", "jsdos-browser-save-warning": "js-dos saves are stored only in this browser and are not synced with RomM.", "jsdos-quit-without-saving": "Quit without saving recent progress?", "no-save-selected": "No save selected", diff --git a/frontend/src/locales/es_ES/play.json b/frontend/src/locales/es_ES/play.json index 2aa0ba1d9..85e518e02 100644 --- a/frontend/src/locales/es_ES/play.json +++ b/frontend/src/locales/es_ES/play.json @@ -14,6 +14,7 @@ "deselect-save": "Deseleccionar guardado", "deselect-state": "Deseleccionar estado", "full-screen": "Pantalla completa", + "https-required": "Debe ejecutarse mediante HTTPS. Contacta con el propietario del sitio.", "jsdos-browser-save-warning": "Las partidas de js-dos se almacenan solo en este navegador y no se sincronizan con RomM.", "jsdos-quit-without-saving": "¿Salir sin guardar el progreso reciente?", "no-save-selected": "Ningún guardado seleccionado", diff --git a/frontend/src/locales/fr_FR/play.json b/frontend/src/locales/fr_FR/play.json index daee09878..b84f2a088 100644 --- a/frontend/src/locales/fr_FR/play.json +++ b/frontend/src/locales/fr_FR/play.json @@ -14,6 +14,7 @@ "deselect-save": "Désélectionner la sauvegarde", "deselect-state": "Désélectionner l'état", "full-screen": "Plein écran", + "https-required": "Doit être exécuté en HTTPS. Contactez l'administrateur du site.", "jsdos-browser-save-warning": "Les sauvegardes js-dos sont stockées uniquement dans ce navigateur et ne sont pas synchronisées avec RomM.", "jsdos-quit-without-saving": "Quitter sans enregistrer la progression récente ?", "no-save-selected": "Aucune sauvegarde sélectionnée", diff --git a/frontend/src/locales/hu_HU/play.json b/frontend/src/locales/hu_HU/play.json index 52d519268..ee343eecb 100644 --- a/frontend/src/locales/hu_HU/play.json +++ b/frontend/src/locales/hu_HU/play.json @@ -14,6 +14,7 @@ "deselect-save": "Mentés kiválasztásának törlése", "deselect-state": "Állás kiválasztásának törlése", "full-screen": "Teljes képernyő", + "https-required": "HTTPS-en keresztül kell futtatni. Vedd fel a kapcsolatot az oldal tulajdonosával.", "jsdos-browser-save-warning": "A js-dos mentések csak ebben a böngészőben tárolódnak, és nem szinkronizálódnak a RomM-mal.", "jsdos-quit-without-saving": "Kilépés a legutóbbi előrehaladás mentése nélkül?", "no-save-selected": "Nincs kiválasztott mentés", diff --git a/frontend/src/locales/it_IT/play.json b/frontend/src/locales/it_IT/play.json index a569c493e..a47658c67 100644 --- a/frontend/src/locales/it_IT/play.json +++ b/frontend/src/locales/it_IT/play.json @@ -14,6 +14,7 @@ "deselect-save": "Deseleziona Salvataggio", "deselect-state": "Deseleziona Stato", "full-screen": "Schermo Intero", + "https-required": "Deve essere eseguito su HTTPS. Contatta il proprietario del sito.", "jsdos-browser-save-warning": "I salvataggi di js-dos vengono archiviati solo in questo browser e non vengono sincronizzati con RomM.", "jsdos-quit-without-saving": "Uscire senza salvare i progressi recenti?", "no-save-selected": "Nessun salvataggio selezionato", diff --git a/frontend/src/locales/ja_JP/play.json b/frontend/src/locales/ja_JP/play.json index 5a54db975..b0fcb7363 100644 --- a/frontend/src/locales/ja_JP/play.json +++ b/frontend/src/locales/ja_JP/play.json @@ -14,6 +14,7 @@ "deselect-save": "セーブデータを解除", "deselect-state": "ステートを解除", "full-screen": "全画面", + "https-required": "HTTPS で実行する必要があります。サイト管理者に連絡してください。", "jsdos-browser-save-warning": "js-dos のセーブデータはこのブラウザーにのみ保存され、RomM とは同期されません。", "jsdos-quit-without-saving": "最近の進行状況を保存せずに終了しますか?", "no-save-selected": "セーブデータが選択されていません", diff --git a/frontend/src/locales/ko_KR/play.json b/frontend/src/locales/ko_KR/play.json index 73c2c042f..03c21d85c 100644 --- a/frontend/src/locales/ko_KR/play.json +++ b/frontend/src/locales/ko_KR/play.json @@ -14,6 +14,7 @@ "deselect-save": "세이브 선택 해제", "deselect-state": "상태 선택 해제", "full-screen": "전체 화면", + "https-required": "HTTPS로 실행해야 합니다. 사이트 관리자에게 문의하세요.", "jsdos-browser-save-warning": "js-dos 저장 데이터는 이 브라우저에만 저장되며 RomM과 동기화되지 않습니다.", "jsdos-quit-without-saving": "최근 진행 상황을 저장하지 않고 종료하시겠습니까?", "no-save-selected": "선택된 세이브 없음", diff --git a/frontend/src/locales/pl_PL/play.json b/frontend/src/locales/pl_PL/play.json index 393452729..4545e26db 100644 --- a/frontend/src/locales/pl_PL/play.json +++ b/frontend/src/locales/pl_PL/play.json @@ -14,6 +14,7 @@ "deselect-save": "Odznacz zapis", "deselect-state": "Odznacz stan", "full-screen": "Pełny ekran", + "https-required": "Musi być uruchomione przez HTTPS. Skontaktuj się z właścicielem strony.", "jsdos-browser-save-warning": "Zapisy js-dos są przechowywane tylko w tej przeglądarce i nie są synchronizowane z RomM.", "jsdos-quit-without-saving": "Wyjść bez zapisywania ostatnich postępów?", "no-save-selected": "Nie wybrano zapisu", diff --git a/frontend/src/locales/pt_BR/play.json b/frontend/src/locales/pt_BR/play.json index 1d05f3c54..d522d1cf3 100644 --- a/frontend/src/locales/pt_BR/play.json +++ b/frontend/src/locales/pt_BR/play.json @@ -14,6 +14,7 @@ "deselect-save": "Desmarcar save", "deselect-state": "Desmarcar estado", "full-screen": "Tela cheia", + "https-required": "Deve ser executado via HTTPS. Entre em contato com o proprietário do site.", "jsdos-browser-save-warning": "Os saves do js-dos são armazenados apenas neste navegador e não são sincronizados com o RomM.", "jsdos-quit-without-saving": "Sair sem salvar o progresso recente?", "no-save-selected": "Nenhum save selecionado", diff --git a/frontend/src/locales/ro_RO/play.json b/frontend/src/locales/ro_RO/play.json index 1c909fd06..aa9605d97 100644 --- a/frontend/src/locales/ro_RO/play.json +++ b/frontend/src/locales/ro_RO/play.json @@ -14,6 +14,7 @@ "deselect-save": "Deselectează salvare", "deselect-state": "Deselectează stare", "full-screen": "Ecran complet", + "https-required": "Trebuie rulat prin HTTPS. Contactează proprietarul site-ului.", "jsdos-browser-save-warning": "Salvările js-dos sunt stocate numai în acest browser și nu sunt sincronizate cu RomM.", "jsdos-quit-without-saving": "Ieși fără a salva progresul recent?", "no-save-selected": "Nicio salvare selectată", diff --git a/frontend/src/locales/ru_RU/play.json b/frontend/src/locales/ru_RU/play.json index 7e1191787..fe1ea8d56 100644 --- a/frontend/src/locales/ru_RU/play.json +++ b/frontend/src/locales/ru_RU/play.json @@ -14,6 +14,7 @@ "deselect-save": "Снять выбор сохранения", "deselect-state": "Снять выбор состояния", "full-screen": "Полный экран", + "https-required": "Требуется запуск через HTTPS. Свяжитесь с владельцем сайта.", "jsdos-browser-save-warning": "Сохранения js-dos хранятся только в этом браузере и не синхронизируются с RomM.", "jsdos-quit-without-saving": "Выйти, не сохраняя недавний прогресс?", "no-save-selected": "Сохранение не выбрано", diff --git a/frontend/src/locales/tr_TR/play.json b/frontend/src/locales/tr_TR/play.json index d53c831f4..1c5ede332 100644 --- a/frontend/src/locales/tr_TR/play.json +++ b/frontend/src/locales/tr_TR/play.json @@ -14,6 +14,7 @@ "deselect-save": "Kaydın seçimini kaldır", "deselect-state": "Durum kaydının seçimini kaldır", "full-screen": "Tam ekran", + "https-required": "HTTPS üzerinden çalıştırılmalıdır. Site sahibiyle iletişime geçin.", "jsdos-browser-save-warning": "js-dos kayıtları yalnızca bu tarayıcıda saklanır ve RomM ile eşitlenmez.", "jsdos-quit-without-saving": "Son ilerlemeyi kaydetmeden çıkılsın mı?", "no-save-selected": "Kayıt seçilmedi", diff --git a/frontend/src/locales/zh_CN/play.json b/frontend/src/locales/zh_CN/play.json index 00cb7cde8..9a7a38524 100644 --- a/frontend/src/locales/zh_CN/play.json +++ b/frontend/src/locales/zh_CN/play.json @@ -14,6 +14,7 @@ "deselect-save": "取消选择存档", "deselect-state": "取消选择状态", "full-screen": "全屏", + "https-required": "必须通过 HTTPS 运行。请联系网站所有者。", "jsdos-browser-save-warning": "js-dos 存档仅保存在此浏览器中,不会与 RomM 同步。", "jsdos-quit-without-saving": "不保存最近的进度并退出吗?", "no-save-selected": "未选择存档", diff --git a/frontend/src/locales/zh_TW/play.json b/frontend/src/locales/zh_TW/play.json index 4c584224f..5bd87776d 100644 --- a/frontend/src/locales/zh_TW/play.json +++ b/frontend/src/locales/zh_TW/play.json @@ -14,6 +14,7 @@ "deselect-save": "取消選擇存檔", "deselect-state": "取消選擇即時存檔", "full-screen": "全螢幕", + "https-required": "必須透過 HTTPS 執行。請聯絡網站擁有者。", "jsdos-browser-save-warning": "js-dos 存檔僅保存在此瀏覽器中,不會與 RomM 同步。", "jsdos-quit-without-saving": "不儲存最近的進度並退出嗎?", "no-save-selected": "未選擇存檔", From 55a1152256c4a6507acf9068360c2087d23febcc Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Thu, 3 Sep 2026 22:01:56 -0400 Subject: [PATCH 5/5] cleanup --- frontend/src/v2/views/Player/EmulatorJS.vue | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/frontend/src/v2/views/Player/EmulatorJS.vue b/frontend/src/v2/views/Player/EmulatorJS.vue index b478d744f..c17bc5b61 100644 --- a/frontend/src/v2/views/Player/EmulatorJS.vue +++ b/frontend/src/v2/views/Player/EmulatorJS.vue @@ -231,14 +231,8 @@ useEventListener(document, "fullscreenchange", () => { }); async function onPlay() { - // Threaded cores (dosbox_pure, ppsspp, azahar, scummvm) need - // SharedArrayBuffer, which browsers only expose on a secure context - // (HTTPS, or localhost) -- regardless of what headers the server sends. - // Left unchecked, EmulatorJS's own loader still attempts to boot and - // fails deep inside its own code with a generic on-canvas - // "Error for site owner / Check console" that gives the player no - // actionable information. Catch it here instead, before ever loading - // the emulator, with a message that says what's actually wrong. + // Threaded cores need SharedArrayBuffer, which browsers only expose on a + // secure context (HTTPS or localhost), whatever headers the server sends. if ( selectedCore.value && areThreadsRequiredForEJSCore(selectedCore.value) &&