Skip to content

Commit

Permalink
Reinstate shadow DOM fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Mar 17, 2016
1 parent 5374876 commit e54242d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -548,7 +548,8 @@


// ensure link
var el = e.target;
// use shadow dom when available
var el = e.path ? e.path[0] : e.target;
while (el && 'A' !== el.nodeName) el = el.parentNode;
if (!el || 'A' !== el.nodeName) return;

Expand Down

0 comments on commit e54242d

Please sign in to comment.