浏览代码

Merge pull request #4137 from finscn/use-date.now

Use `Date.now()` instead of `(new Date()).getTime()`
David Catuhe 7 年之前
父节点
当前提交
320c6d6949
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Tools/babylon.database.ts

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

@@ -74,7 +74,7 @@ module BABYLON {
             if (navigator.onLine) {
                 // Adding a timestamp to by-pass browsers' cache
                 timeStampUsed = true;
-                manifestURL = manifestURL + (manifestURL.match(/\?/) == null ? "?" : "&") + (new Date()).getTime();
+                manifestURL = manifestURL + (manifestURL.match(/\?/) == null ? "?" : "&") + Date.now();
             }
             xhr.open("GET", manifestURL, true);