mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 10:56:12 +03:00
fix
This commit is contained in:
+3
-2
@@ -84,13 +84,14 @@ kit.config = kit.config || {};
|
||||
document.querySelector('meta[property="kit:file-load"][content="'+src+'"]');
|
||||
}
|
||||
function getUrlWithTimestamp(url){
|
||||
var t = ((new Date()).getTime() / 3600 >> 0) * 3600;
|
||||
try {
|
||||
var uri = new URL(url);
|
||||
uri.searchParams.append('__pm', (new Date()).getTime());
|
||||
uri.searchParams.append('__pm', String(t));
|
||||
url = uri.toString();
|
||||
} catch (e) {
|
||||
url = String(url).split('?')[0];
|
||||
url = '' + url + '?__pm' + (new Date()).getTime();
|
||||
url = '' + url + '?__pm' + t;
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user