浏览代码

chore: generate

GitHub Action 2 月之前
父节点
当前提交
8f0d08fae0
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      packages/app/src/components/settings-general.tsx

+ 2 - 3
packages/app/src/components/settings-general.tsx

@@ -7,17 +7,16 @@ 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,
 }
 }
 
 
-// To prevent audio from overlapping/playing very quickly when navigating the settings menus, 
+// To prevent audio from overlapping/playing very quickly when navigating the settings menus,
 // 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)