Skip to content

Commit

Permalink
Removal of unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuemeli committed Jan 1, 2024
1 parent 678867c commit c219137
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions src/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
})();
});

0 comments on commit c219137

Please sign in to comment.