From 7ea6e925f34c5a8704e2a0a7d88d83a65b9a6313 Mon Sep 17 00:00:00 2001 From: ttop32 Date: Fri, 6 Dec 2024 21:58:09 +0900 Subject: [PATCH] fix browser tts --- src/util/setting_util.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/util/setting_util.js b/src/util/setting_util.js index e266027a..dc7657de 100644 --- a/src/util/setting_util.js +++ b/src/util/setting_util.js @@ -7,6 +7,10 @@ import { googleTranslateTtsLangList, } from "/src/util/lang.js"; import TextUtil from "/src/util/text_util.js"; +var browser; +try { + browser = require("webextension-polyfill"); +} catch (error) {} // import SettingUtil from "/src/util/setting_util.js"; @@ -75,7 +79,7 @@ export default class SettingUtil { voiceList[lang].push(item.voiceName); } } catch (err) { - // Handle error if needed + console.log(err); } resolve(voiceList); });