diff --git a/src/preload.ts b/src/preload.ts index 87b6e30..16ea6c1 100644 --- a/src/preload.ts +++ b/src/preload.ts @@ -8,25 +8,4 @@ window.addEventListener("DOMContentLoaded", () => { replaceText(`${type}-version`, process.versions[type] || 'N/A'); } -}); - -(function mockChromeUserAgent() { - let oiginalVoices = window.speechSynthesis.getVoices(); - window.speechSynthesis.getVoices = function () { - return [ - { - voiceURI: "Google US English", - name: "Google US English", - lang: "en-US", - localService: false, - default: false, - }, - ]; - }; - - setTimeout(() => { - window.speechSynthesis.getVoices = function () { - return oiginalVoices; - }; - }, 10_000); -})(); \ No newline at end of file +}); \ No newline at end of file