mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
minor code review re. #2592
This commit is contained in:
parent
22d74421e3
commit
622d8f22fb
1 changed files with 4 additions and 3 deletions
|
|
@ -72,12 +72,13 @@ api.fetchText = function(url, onLoad, onError) {
|
|||
// Force browser cache to be bypassed, but only for resources which have
|
||||
// been fetched more than one hour ago.
|
||||
if ( isExternal ) {
|
||||
var queryValue = Math.floor(Date.now() / 7200000);
|
||||
var queryValue = '_=' + Math.floor(Date.now() / 7200000);
|
||||
if ( actualUrl.indexOf('?') === -1 ) {
|
||||
actualUrl += '?_=' + queryValue;
|
||||
actualUrl += '?';
|
||||
} else {
|
||||
actualUrl += '&_=' + queryValue;
|
||||
actualUrl += '&';
|
||||
}
|
||||
actualUrl += queryValue;
|
||||
}
|
||||
|
||||
if ( typeof onError !== 'function' ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue