1
0
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:
Miciah Dashiel Butler Masters 2006-10-20 21:04:52 +00:00 committed by Miciah Dashiel Butler Masters
parent f7fba1b8e4
commit f22dbfb6f5

View File

@ -74,7 +74,7 @@ function block_pr0n(uri) {
return "";
}
return true;
return uri;
}
elinks.follow_url_hooks.push(block_pr0n);