Trigger IndexedDB onupgradeneeded by increasing DB version
authorBenjamin Auder <benjamin.auder@somewhere>
Thu, 19 Mar 2020 15:52:21 +0000 (16:52 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Thu, 19 Mar 2020 15:52:21 +0000 (16:52 +0100)
client/src/utils/gameStorage.js

index 514448b..e26e19a 100644 (file)
@@ -19,7 +19,7 @@ import { store } from "@/store";
 
 function dbOperation(callback) {
   let db = null;
 
 function dbOperation(callback) {
   let db = null;
-  let DBOpenRequest = window.indexedDB.open("vchess", 4);
+  let DBOpenRequest = window.indexedDB.open("vchess", 5);
 
   DBOpenRequest.onerror = function(event) {
     alert(store.state.tr["Database error: stop private browsing, or update your browser"]);
 
   DBOpenRequest.onerror = function(event) {
     alert(store.state.tr["Database error: stop private browsing, or update your browser"]);