mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 13:35:12 +03:00
update
This commit is contained in:
parent
36087eeace
commit
3328749f29
26
client/demo/dist/index.js
vendored
26
client/demo/dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -108,16 +108,19 @@ const AppStateWrapper = () => {
|
||||
const errorInfos = (error?.errorInfo.componentStack || "no error stack").split("\n")
|
||||
|
||||
const onClearCacheClicked = async () => {
|
||||
[
|
||||
const indexedDBKeys = [
|
||||
INDEXEDDB_KEY_CLIENT,
|
||||
INDEXEDDB_KEY_SERVER,
|
||||
INDEXEDDB_KEY_WORKLETNODE,
|
||||
INDEXEDDB_KEY_MODEL_DATA,
|
||||
INDEXEDDB_KEY_WORKLET
|
||||
].forEach((x) => {
|
||||
localForage.removeItem(x)
|
||||
})
|
||||
await removeItem(INDEXEDDB_KEY_AUDIO_OUTPUT)
|
||||
INDEXEDDB_KEY_WORKLET,
|
||||
INDEXEDDB_KEY_AUDIO_OUTPUT
|
||||
]
|
||||
for (const k of indexedDBKeys) {
|
||||
console.log("remove2", k)
|
||||
await removeItem(k)
|
||||
}
|
||||
|
||||
location.reload();
|
||||
}
|
||||
return (
|
||||
|
@ -38,7 +38,7 @@ export const useQualityControl = (): QualityControlState => {
|
||||
|
||||
const [recording, setRecording] = useState<boolean>(false)
|
||||
const [outputAudioDeviceInfo, setOutputAudioDeviceInfo] = useState<MediaDeviceInfo[]>([])
|
||||
const [audioOutputForGUI, setAudioOutputForGUI] = useState<string>("none")
|
||||
const [audioOutputForGUI, setAudioOutputForGUI] = useState<string>("default")
|
||||
useEffect(() => {
|
||||
const initialize = async () => {
|
||||
const audioInfo = await reloadDevices()
|
||||
|
Loading…
Reference in New Issue
Block a user