[ver] 1.63.3

This commit is contained in:
kwaroran
2023-12-03 22:50:41 +09:00
parent bb376f231f
commit 984a5833f1
4 changed files with 15 additions and 13 deletions

View File

@@ -53,16 +53,18 @@ class LocalWriter{
}
if(showSaveFilePicker){
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
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')