mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Fixed block requests for missing resources
This commit is contained in:
@@ -104,11 +104,16 @@ interceptor._handleMissingCandidate = function (requestUrl, preserveUrl) {
|
|||||||
requestUrlSegments.protocol = Address.HTTPS;
|
requestUrlSegments.protocol = Address.HTTPS;
|
||||||
requestUrl = requestUrlSegments.toString();
|
requestUrl = requestUrlSegments.toString();
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'redirectUrl': requestUrl
|
'redirectUrl': requestUrl
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
return {
|
||||||
|
'cancel': false
|
||||||
|
};
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
interceptor._handleStorageChanged = function (changes) {
|
interceptor._handleStorageChanged = function (changes) {
|
||||||
|
Reference in New Issue
Block a user