patchnav-basic
Advanced tools
+7
-3
@@ -61,7 +61,10 @@ var h = require('hyperscript') | ||
| window.onclick = function (ev) { | ||
| var href, target = ev.target | ||
| while (target && !(href = target.getAttribute('href'))) | ||
| target = target.parentNode | ||
| ev.preventDefault() | ||
| //TODO: make path more generic | ||
| var link = ev.target.getAttribute('href') //get the exact href provided | ||
| if(link) { | ||
| nav.push(link) | ||
| if(href) { | ||
| nav.push(href) | ||
| } | ||
@@ -85,1 +88,2 @@ } | ||
+1
-1
| { | ||
| "name": "patchnav-basic", | ||
| "description": "", | ||
| "version": "2.0.1", | ||
| "version": "2.0.2", | ||
| "homepage": "https://github.com/dominictarr/patchnav-basic", | ||
@@ -6,0 +6,0 @@ "repository": { |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
5717
1.13%158
1.28%