diff --git a/backend/package.json b/backend/package.json index 9fb869f..c385f96 100644 --- a/backend/package.json +++ b/backend/package.json @@ -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": { diff --git a/backend/src/vendor/open-api.js b/backend/src/vendor/open-api.js index bb9edf8..873e0c1 100644 --- a/backend/src/vendor/open-api.js +++ b/backend/src/vendor/open-api.js @@ -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