1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 07:22:28 +02:00

remove experimental pseudo-redirector for the time being

This commit is contained in:
Raymond Hill 2018-04-02 04:47:24 -04:00
parent 67c1d90d7a
commit fd78f9b743
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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 ) {