mirror of https://github.com/gorhill/uBlock.git
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 onBeforeRequest = function(details) {
|
||||
normalizeRequestDetails(details);
|
||||
let r = onBeforeRequestClient(details);
|
||||
if (
|
||||
r !== undefined &&
|
||||
r.redirectUrl !== undefined &&
|
||||
details.type === 'xmlhttprequest'
|
||||
) {
|
||||
r.redirectUrl = pseudoRedirector.start(
|
||||
details.requestId,
|
||||
r.redirectUrl
|
||||
);
|
||||
}
|
||||
return r;
|
||||
return onBeforeRequestClient(details);
|
||||
};
|
||||
|
||||
if ( onBeforeRequest ) {
|
||||
|
|
Loading…
Reference in New Issue