diff --git a/src/util/index.js b/src/util/index.js index 9fbe13f6..dc096ac6 100644 --- a/src/util/index.js +++ b/src/util/index.js @@ -856,11 +856,14 @@ export async function createOffscreen() { try { await browser?.offscreen?.createDocument({ url: "offscreen.html", - reasons: ["WORKERS"], + reasons: ["USER_MEDIA"], justification: "TTS & Speech", }); } catch (error) { - if (!error.message.startsWith("Only a single offscreen")) throw error; + if (error.message.startsWith("Only a single offscreen")) { + } else { + console.log(error); + } } } export async function removeOffscreen() {