hexo-swpp 1.3.4 → 1.3.5
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/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -237,7 +237,7 @@ const fetchFile = link => new Promise((resolve, reject) => {
|
|
|
237
237
|
referer: new URL(link).hostname,
|
|
238
238
|
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.62'
|
|
239
239
|
},
|
|
240
|
-
timeout: 1500
|
|
240
|
+
timeout: pluginConfig.timeout ?? 1500
|
|
241
241
|
}).then(response => {
|
|
242
242
|
switch (response.status) {
|
|
243
243
|
case 200: case 301: case 302:
|