mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
SMJS: block_pr0n: return the original URI if not blocking it
Return the original URI instead of the value true, so that any later hooks will have the URI.
This commit is contained in:
parent
f7fba1b8e4
commit
f22dbfb6f5
@ -74,7 +74,7 @@ function block_pr0n(uri) {
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return uri;
|
||||||
}
|
}
|
||||||
elinks.follow_url_hooks.push(block_pr0n);
|
elinks.follow_url_hooks.push(block_pr0n);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user