This commit is contained in:
wataru 2023-03-02 10:21:28 +09:00
parent 36087eeace
commit 3328749f29
3 changed files with 12 additions and 31 deletions

File diff suppressed because one or more lines are too long

View File

@ -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 (

View File

@ -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()