favicon-component
Advanced tools
+4
-4
@@ -278,9 +278,9 @@ | ||
| var el = document.querySelector('link[rel=icon]'); | ||
| if (!el) return; | ||
| if (!orig) { | ||
| if (orig) { | ||
| el.href = orig; | ||
| } else { | ||
| head().removeChild(el); | ||
| return; | ||
| } | ||
| el.href = orig; | ||
| } | ||
@@ -287,0 +287,0 @@ |
+1
-1
| { | ||
| "name": "favicon", | ||
| "description": "Dynamic favicon replacement component", | ||
| "version": "1.0.1", | ||
| "version": "1.0.2", | ||
| "keywords": ["favicon", "image", "ui", "canvas"], | ||
@@ -6,0 +6,0 @@ "dependencies": {}, |
+5
-0
| 1.0.2 / 2013-04-18 | ||
| ================== | ||
| * fix el.href assignment when `el` is undefined | ||
| 1.0.1 / 2013-04-17 | ||
@@ -3,0 +8,0 @@ ================== |
+4
-4
@@ -76,9 +76,9 @@ | ||
| var el = document.querySelector('link[rel=icon]'); | ||
| if (!el) return; | ||
| if (!orig && el) { | ||
| if (orig) { | ||
| el.href = orig; | ||
| } else { | ||
| head().removeChild(el); | ||
| return; | ||
| } | ||
| el.href = orig; | ||
| } | ||
@@ -85,0 +85,0 @@ |
+1
-1
| { | ||
| "name": "favicon-component", | ||
| "description": "Dynamic favicon replacement component", | ||
| "version": "1.0.1", | ||
| "version": "1.0.2", | ||
| "keywords": ["favicon", "image", "ui", "canvas"], | ||
@@ -6,0 +6,0 @@ "dependencies": {}, |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
8056
1.52%322
0.63%