chore: generate
This commit is contained in:
@@ -7,7 +7,6 @@ import { useSettings, monoFontFamily } from "@/context/settings"
|
|||||||
import { playSound, SOUND_OPTIONS } from "@/utils/sound"
|
import { playSound, SOUND_OPTIONS } from "@/utils/sound"
|
||||||
import { Link } from "./link"
|
import { Link } from "./link"
|
||||||
|
|
||||||
|
|
||||||
let demoSoundState = {
|
let demoSoundState = {
|
||||||
cleanup: undefined as (() => void) | undefined,
|
cleanup: undefined as (() => void) | undefined,
|
||||||
timeout: undefined as NodeJS.Timeout | undefined,
|
timeout: undefined as NodeJS.Timeout | undefined,
|
||||||
@@ -17,7 +16,7 @@ let demoSoundState = {
|
|||||||
// delay the playback by 100ms during quick selection changes and pause existing sounds.
|
// delay the playback by 100ms during quick selection changes and pause existing sounds.
|
||||||
const playDemoSound = (src: string) => {
|
const playDemoSound = (src: string) => {
|
||||||
if (demoSoundState.cleanup) {
|
if (demoSoundState.cleanup) {
|
||||||
demoSoundState.cleanup();
|
demoSoundState.cleanup()
|
||||||
}
|
}
|
||||||
|
|
||||||
clearTimeout(demoSoundState.timeout)
|
clearTimeout(demoSoundState.timeout)
|
||||||
|
|||||||
Reference in New Issue
Block a user