mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-02-02 02:58:13 -05:00
Fix redirect detection of data: and about: URLs. Fix #293.
This commit is contained in:
parent
6f2763bff3
commit
9b18d3194a
@ -74,7 +74,9 @@ module.exports = class WebRequestMonitor
|
|||||||
callback('ongoing', req)
|
callback('ongoing', req)
|
||||||
|
|
||||||
_requestRedirected: (req) ->
|
_requestRedirected: (req) ->
|
||||||
if req.url.indexOf('data:') == 0
|
url = req.redirectUrl
|
||||||
|
return unless url
|
||||||
|
if url.indexOf('data:') == 0 || url.indexOf('about:') == 0
|
||||||
@_requestDone(req)
|
@_requestDone(req)
|
||||||
|
|
||||||
_requestError: (req) ->
|
_requestError: (req) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user