SWが保存したファイルは投稿が完了するまでIndexedDBに保持

This commit is contained in:
tamaina 2025-07-26 02:29:59 +09:00
parent c4137efec1
commit 02d6b258c4
1 changed files with 2 additions and 1 deletions

View File

@ -204,7 +204,6 @@ async function init() {
if (Array.isArray(filesFromIdb) && filesFromIdb.length > 0 && filesFromIdb.every(file => file instanceof Blob)) {
tempFiles.value = filesFromIdb;
}
del('share-files-temp'); // Clear the temporary files from IndexedDB
}
if (urlParams.has('file') && urlParams.get('file').startsWith('data:')) {
@ -241,6 +240,8 @@ function goToMisskey(): void {
function onPosted(): void {
state.value = 'posted';
// SW稿IndexedDB
del('share-files-temp');
postMessageToParentWindow('misskey:shareForm:shareCompleted');
}