Skip to content

Commit

Permalink
fix browser tts
Browse files Browse the repository at this point in the history
  • Loading branch information
ttop32 committed Dec 6, 2024
1 parent ea2f10f commit 7ea6e92
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/util/setting_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -75,7 +79,7 @@ export default class SettingUtil {
voiceList[lang].push(item.voiceName);
}
} catch (err) {
// Handle error if needed
console.log(err);
}
resolve(voiceList);
});
Expand Down

0 comments on commit 7ea6e92

Please sign in to comment.