[fix] remove fsapi dude to comp

This commit is contained in:
kwaroran
2023-12-03 23:05:20 +09:00
parent 984a5833f1
commit da69f6c328

View File

@@ -51,21 +51,6 @@ class LocalWriter{
this.writer = new TauriWriter(filePath)
return true
}
if(showSaveFilePicker){
try {
const handle = await showSaveFilePicker({
types: [{
description: 'Binary',
accept: {'application/octet-stream': ['.bin']}
}]
})
const writable = await handle.createWritable()
this.writableStream = writable
this.writer = writable.getWriter()
return true
} catch (error) {}
}
const streamSaver = await import('streamsaver')
this.writableStream = streamSaver.createWriteStream('risu-backup.bin')
this.writer = this.writableStream.getWriter()