From 7603fac036ff0d3c54fba30edf2d7216f265b113 Mon Sep 17 00:00:00 2001 From: xream Date: Mon, 18 Sep 2023 20:09:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E6=97=A0=20clearTimeout=20=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/vendor/open-api.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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