mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
code review: bit stricter code path
This commit is contained in:
parent
16a7ba8f6e
commit
c3f9f6b716
@ -88,13 +88,12 @@ var RedirectEntry = function() {
|
|||||||
// - https://bugzilla.mozilla.org/show_bug.cgi?id=998076
|
// - https://bugzilla.mozilla.org/show_bug.cgi?id=998076
|
||||||
|
|
||||||
RedirectEntry.prototype.toURL = function(details) {
|
RedirectEntry.prototype.toURL = function(details) {
|
||||||
if ( this.warURL !== undefined ) {
|
if (
|
||||||
if (
|
this.warURL !== undefined &&
|
||||||
details instanceof Object === false ||
|
details instanceof Object &&
|
||||||
details.requestType !== 'xmlhttprequest'
|
details.requestType !== 'xmlhttprequest'
|
||||||
) {
|
) {
|
||||||
return this.warURL + '?secret=' + vAPI.warSecret;
|
return this.warURL + '?secret=' + vAPI.warSecret;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if ( this.data.startsWith('data:') === false ) {
|
if ( this.data.startsWith('data:') === false ) {
|
||||||
if ( this.mime.indexOf(';') === -1 ) {
|
if ( this.mime.indexOf(';') === -1 ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user