Optimize game.putDB.

(cherry picked from commit b622a90f06425d2d91e24fdb81472a721d4358e5)
This commit is contained in:
Tipx-L 2023-08-24 08:23:20 -07:00
parent 97db71b24b
commit 41bf403216
1 changed files with 1 additions and 2 deletions

View File

@ -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);