Forráskód Böngészése

Update babylon.database.ts

finscn 7 éve
szülő
commit
695c34970a
1 módosított fájl, 1 hozzáadás és 1 törlés
  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);