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