syntax fix
This commit is contained in:
parent
e316557ac8
commit
501dfb50be
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
while (!(stop).test(curnode.nodeName)) {
|
while (!(stop).test(curnode.nodeName)) {
|
||||||
curnode = curnode.parentNode;
|
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();
|
e.preventDefault();
|
||||||
location.href=curnode.href;
|
location.href=curnode.href;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue