diff --git a/src/play.ts b/src/play.ts index 43b96e40..d5c1b3f2 100644 --- a/src/play.ts +++ b/src/play.ts @@ -1,8 +1,8 @@ -import { state } from "./store/play"; +import { state } from "./store/play" function play() { - const synth = window.speechSynthesis; + const synth = window.speechSynthesis const a = document.querySelector("article") if (!a || !a.textContent) { @@ -10,7 +10,7 @@ function play() { } const u = new SpeechSynthesisUtterance(a.textContent) - const voice = synth.getVoices().find((v) => v.name === state.voice); + const voice = synth.getVoices().find((v) => v.name === state.voice) if (voice) { u.voice = voice } diff --git a/src/store/theme.ts b/src/store/theme.ts index b80e147c..69b5384f 100644 --- a/src/store/theme.ts +++ b/src/store/theme.ts @@ -141,6 +141,6 @@ const unsubscribe = subscribe(theme, () => { }) if (theme.theme === "contrast") { document.body.classList.add("theme-contrast") - document.body.classList.add(theme.colorScheme); + document.body.classList.add(theme.colorScheme) } })