mirror of https://github.com/kiwix/libkiwix.git
Merge pull request #401 from kiwix/rgaudin/external-block-warn
Added comment marking dependency of a JS variable with warc2zim
This commit is contained in:
commit
c183f57670
|
@ -1,3 +1,4 @@
|
|||
// `block_path` variable used by openzim/warc2zim to detect whether URL blocking is enabled or not
|
||||
var block_path = "/catch/external";
|
||||
// called only on external links
|
||||
function capture_event(e, target) { target.setAttribute("href", encodeURI(block_path + "?source=" + target.href)); }
|
||||
|
|
Loading…
Reference in New Issue