syntax fix

This commit is contained in:
Manuel Friedli 2014-07-16 23:48:13 +02:00
parent e316557ac8
commit 501dfb50be

View file

@ -40,7 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
while (!(stop).test(curnode.nodeName)) {
curnode = curnode.parentNode;
}
if ('href' in curnode && (curnode.href.indexOf('http') || ~curnode.href.indexOf(location.host)) {
if ('href' in curnode && (curnode.href.indexOf('http') || ~curnode.href.indexOf(location.host))) {
e.preventDefault();
location.href=curnode.href;
}