From ccb10c6a4ac708795c7fb5644af30fe43a58df6f Mon Sep 17 00:00:00 2001 From: Tipx-L <138244655+Tipx-L@users.noreply.github.com> Date: Mon, 25 Sep 2023 09:34:33 -0700 Subject: [PATCH 1/2] Add the migration. --- game/game.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/game/game.js b/game/game.js index fa759c89f..6914ab241 100644 --- a/game/game.js +++ b/game/game.js @@ -9371,19 +9371,13 @@ if(!idbDatabase.objectStoreNames.contains('file')) idbDatabase.createObjectStore('file').transaction.oncomplete=()=>{ if(idbDatabase.objectStoreNames.contains('audio')) idbDatabase.transaction('audio').objectStore('audio').openCursor().onsuccess=event=>{ const result=event.target.result; - if(!result){ - idbDatabase.deleteObjectStore('audio'); - return; - } + if(!result) return; idbDatabase.transaction('file','readwrite').objectStore('file').put(result.value,result.key); result.continue(); }; if(idbDatabase.objectStoreNames.contains('image')) idbDatabase.transaction('image').objectStore('image').openCursor().onsuccess=event=>{ const result=event.target.result; - if(!result){ - idbDatabase.deleteObjectStore('image'); - return; - } + if(!result) return; idbDatabase.transaction('file','readwrite').objectStore('file').put(result.value,result.key); result.continue(); }; From de06c13619d2136f8d9ba58ec83442486e34a2e1 Mon Sep 17 00:00:00 2001 From: Tipx-L <138244655+Tipx-L@users.noreply.github.com> Date: Tue, 26 Sep 2023 01:05:12 +0800 Subject: [PATCH 2/2] Fix. --- game/game.js | 1 + 1 file changed, 1 insertion(+) diff --git a/game/game.js b/game/game.js index 6914ab241..63fc589e5 100644 --- a/game/game.js +++ b/game/game.js @@ -4027,6 +4027,7 @@ style.width='150px'; const firstChild=node.firstChild; firstChild.removeAttribute('class'); + firstChild.style.position='initial'; if(link=='false') return; const ruby=document.createElement('ruby'); ruby.textContent=name;