mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-11 17:48:58 +08:00
fix: 修复部分环境无 clearTimeout 的问题
This commit is contained in:
parent
9acc161684
commit
7603fac036
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.14.58",
|
"version": "2.14.59",
|
||||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
4
backend/src/vendor/open-api.js
vendored
4
backend/src/vendor/open-api.js
vendored
@ -316,7 +316,9 @@ export function HTTP(defaultOptions = { baseURL: '' }) {
|
|||||||
return (
|
return (
|
||||||
timer
|
timer
|
||||||
? Promise.race([timer, worker]).then((res) => {
|
? Promise.race([timer, worker]).then((res) => {
|
||||||
clearTimeout(timeoutid);
|
if (typeof clearTimeout !== 'undefined') {
|
||||||
|
clearTimeout(timeoutid);
|
||||||
|
}
|
||||||
return res;
|
return res;
|
||||||
})
|
})
|
||||||
: worker
|
: worker
|
||||||
|
Loading…
x
Reference in New Issue
Block a user