Ver Fonte

Fix cache buster param (#709)

Lutz Roeder há 5 anos atrás
pai
commit
efc29060ab
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      source/index.js

+ 1 - 1
source/index.js

@@ -435,7 +435,7 @@ host.BrowserHost = class {
     }
 
     _openModel(url, identifier) {
-        url = url + ((/\?/).test(url) ? "&" : "?") + (new Date()).getTime();
+        url = url + ((/\?/).test(url) ? '&' : '?') + 'cb=' + (new Date()).getTime();
         this._view.show('welcome spinner');
         this._request(url).then((buffer) => {
             const context = new host.BrowserHost.BrowserContext(this, url, identifier, buffer);