Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
troyeguo committed Apr 16, 2023
1 parent 46c9c33 commit c3dba61
Show file tree
Hide file tree
Showing 4 changed files with 243 additions and 612 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
},
"repository": "https://github.com/troyeguo/koodo-reader",
"private": false,
"resolutions": {},
"resolutions": {
"//": "See https://github.com/facebook/create-react-app/issues/11773",
"react-error-overlay": "6.0.9"
},
"dependencies": {
"@iarna/rtf-to-html": "^1.1.0",
"@types/chardet": "^0.8.1",
Expand Down
10 changes: 5 additions & 5 deletions public/lib/kookit/kookit.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/components/textToSpeech/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { speedList } from "../../constants/dropdownList";
import StorageUtil from "../../utils/serviceUtils/storageUtil";
import { sleep } from "../../utils/commonUtil";
import EdgeUtil from "../../utils/serviceUtils/edgeUtil";
import { isElectron } from "react-device-detect";

class TextToSpeech extends React.Component<
TextToSpeechProps,
Expand Down Expand Up @@ -32,7 +33,7 @@ class TextToSpeech extends React.Component<
}
let synth = window.speechSynthesis;
synth.getVoices();
this.setState({ edgeVoices: await EdgeUtil.getVoiceList() });
isElectron && this.setState({ edgeVoices: await EdgeUtil.getVoiceList() });
}
handleChangeAudio = () => {
if (this.state.isAudioOn) {
Expand Down
Loading

0 comments on commit c3dba61

Please sign in to comment.