@realfavicongenerator/check-favicon 0.4.8 → 0.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/desktop/ico.js +4 -2
- package/package.json +2 -2
- package/src/desktop/ico.ts +4 -3
package/dist/desktop/ico.js
CHANGED
|
@@ -30,8 +30,10 @@ const checkIcoFavicon = (url, head, fetcher) => __awaiter(void 0, void 0, void 0
|
|
|
30
30
|
icon: { content: null, url: null, width: null, height: null }
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
const icos =
|
|
34
|
-
head.querySelectorAll('link[rel="icon"]
|
|
33
|
+
const icos = [
|
|
34
|
+
...head.querySelectorAll('link[rel="shortcut icon"]'),
|
|
35
|
+
...head.querySelectorAll('link[rel="icon"][type="image/x-icon"]')
|
|
36
|
+
];
|
|
35
37
|
let iconUrl = null;
|
|
36
38
|
let images;
|
|
37
39
|
if (icos.length === 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@realfavicongenerator/check-favicon",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.17",
|
|
4
4
|
"description": "Check the favicon of a website",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"robots-parser": "^3.0.1",
|
|
41
41
|
"sharp": "^0.32.6"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "d1b623a15751d0df89d38fc5fd4915adc2e03646"
|
|
44
44
|
}
|
package/src/desktop/ico.ts
CHANGED
|
@@ -21,9 +21,10 @@ export const checkIcoFavicon = async (url: string, head: HTMLElement | null, fet
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
const icos =
|
|
25
|
-
head.querySelectorAll('link[rel="shortcut icon"]')
|
|
26
|
-
head.querySelectorAll('link[rel="icon"][type="image/x-icon"]')
|
|
24
|
+
const icos = [
|
|
25
|
+
...head.querySelectorAll('link[rel="shortcut icon"]'),
|
|
26
|
+
...head.querySelectorAll('link[rel="icon"][type="image/x-icon"]')
|
|
27
|
+
];
|
|
27
28
|
|
|
28
29
|
let iconUrl: string | null = null;
|
|
29
30
|
let images;
|