mirror of
https://github.com/rkd77/elinks.git
synced 2024-10-13 05:43:37 -04: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 true;
|
||||
return uri;
|
||||
}
|
||||
elinks.follow_url_hooks.push(block_pr0n);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user