favicon-stealer 1.4.0 → 1.5.0
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/Favicon.js +1 -1
- package/package.json +1 -1
package/dist/Favicon.js
CHANGED
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
const utils_1 = require("./lib/utils");
|
|
38
38
|
const react_1 = __importStar(require("react"));
|
|
39
|
-
const Favicon = ({ url, size = 32, className = "", timeout =
|
|
39
|
+
const Favicon = ({ url, size = 32, className = "", timeout = 3000, // 增加到3秒,给网站自己的favicon更多加载时间
|
|
40
40
|
border = false, padding = 0, background = "transparent", borderRadius = 0, lazy = false, preferGoogle = false, }) => {
|
|
41
41
|
const domain = (0, utils_1.getDomain)(url);
|
|
42
42
|
const [imgSrc, setImgSrc] = (0, react_1.useState)("");
|