mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +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+'"]');
|
document.querySelector('meta[property="kit:file-load"][content="'+src+'"]');
|
||||||
}
|
}
|
||||||
function getUrlWithTimestamp(url){
|
function getUrlWithTimestamp(url){
|
||||||
|
var t = ((new Date()).getTime() / 3600 >> 0) * 3600;
|
||||||
try {
|
try {
|
||||||
var uri = new URL(url);
|
var uri = new URL(url);
|
||||||
uri.searchParams.append('__pm', (new Date()).getTime());
|
uri.searchParams.append('__pm', String(t));
|
||||||
url = uri.toString();
|
url = uri.toString();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
url = String(url).split('?')[0];
|
url = String(url).split('?')[0];
|
||||||
url = '' + url + '?__pm' + (new Date()).getTime();
|
url = '' + url + '?__pm' + t;
|
||||||
}
|
}
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user