hexo-swpp 1.6.0 → 1.6.1
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
|
@@ -250,7 +250,7 @@ const fetchFile = link => new Promise((resolve, reject) => {
|
|
|
250
250
|
referer: new URL(link).hostname,
|
|
251
251
|
'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'
|
|
252
252
|
},
|
|
253
|
-
timeout: pluginConfig.timeout ?? 1500
|
|
253
|
+
timeout: pluginConfig.external.timeout ?? 1500
|
|
254
254
|
}).then(response => {
|
|
255
255
|
switch (response.status) {
|
|
256
256
|
case 200: case 301: case 302:
|