Quellcode durchsuchen

Update babylon.database.ts

finscn vor 7 Jahren
Ursprung
Commit
695c34970a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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);