Explorar o código

More relax idb check

David Catuhe %!s(int64=7) %!d(string=hai) anos
pai
achega
70fe6c9c35
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/Tools/babylon.database.ts

+ 2 - 2
src/Tools/babylon.database.ts

@@ -398,8 +398,8 @@ module BABYLON {
 
                     transaction.oncomplete = event => {
                         if (version) {
-                            // If the version in the JSON file is > than the version in DB
-                            if (this.manifestVersionFound > version.data) {
+                            // If the version in the JSON file is different from the version in DB
+                            if (this.manifestVersionFound !== version.data) {
                                 this.mustUpdateRessources = true;
                                 updateInDBCallback();
                             }