Skip to content

Commit c9eb5b2

Browse files
committed
Treat resources with data as redirectable
Related issue: uBlockOrigin/uBlock-issues#4107
1 parent 638e128 commit c9eb5b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/js/redirect-engine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ class RedirectEngine {
406406
for ( const [ name, entry ] of this.resources ) {
407407
out.set(name, {
408408
canInject: typeof entry.data === 'string',
409-
canRedirect: entry.warURL !== undefined,
409+
canRedirect: Boolean(entry.warURL ?? entry.data),
410410
aliasOf: '',
411411
extensionPath: entry.warURL,
412412
});

0 commit comments

Comments
 (0)