浏览代码

More relax idb check

David Catuhe 7 年之前
父节点
当前提交
70fe6c9c35
共有 1 个文件被更改,包括 2 次插入2 次删除
  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();
                             }