From 41bf403216e9a777733b4bdb9974e81602b58fdb Mon Sep 17 00:00:00 2001 From: Tipx-L <138244655+Tipx-L@users.noreply.github.com> Date: Thu, 24 Aug 2023 08:23:20 -0700 Subject: [PATCH] Optimize game.putDB. (cherry picked from commit b622a90f06425d2d91e24fdb81472a721d4358e5) --- game/game.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/game/game.js b/game/game.js index 9cb291ff9..2def5f502 100644 --- a/game/game.js +++ b/game/game.js @@ -38148,8 +38148,7 @@ return; } lib.status.reload++; - var put=lib.db.transaction([type],'readwrite').objectStore(type).put(item,id); - put.onsuccess=function(){ + lib.db.transaction([type],'readwrite').objectStore(type).put(item,id).onsuccess=function(){ if(callback){ _status.dburgent=true; callback.apply(this,arguments);