mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
remove experimental pseudo-redirector for the time being
This commit is contained in:
parent
67c1d90d7a
commit
fd78f9b743
@ -200,18 +200,7 @@ vAPI.net.registerListeners = function() {
|
|||||||
let onBeforeRequestClient = this.onBeforeRequest.callback;
|
let onBeforeRequestClient = this.onBeforeRequest.callback;
|
||||||
let onBeforeRequest = function(details) {
|
let onBeforeRequest = function(details) {
|
||||||
normalizeRequestDetails(details);
|
normalizeRequestDetails(details);
|
||||||
let r = onBeforeRequestClient(details);
|
return onBeforeRequestClient(details);
|
||||||
if (
|
|
||||||
r !== undefined &&
|
|
||||||
r.redirectUrl !== undefined &&
|
|
||||||
details.type === 'xmlhttprequest'
|
|
||||||
) {
|
|
||||||
r.redirectUrl = pseudoRedirector.start(
|
|
||||||
details.requestId,
|
|
||||||
r.redirectUrl
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return r;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if ( onBeforeRequest ) {
|
if ( onBeforeRequest ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user