From 7dff72794f77b5568e1f9e7679a76c5fb3e67e95 Mon Sep 17 00:00:00 2001 From: FrozenQ <30966381+FrozenQ@users.noreply.github.com> Date: Thu, 31 Jul 2025 09:46:33 +0800 Subject: [PATCH] Update utils.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 检查的字段为reason,对应的谷歌版本为98,变更为检查 any,对应版本为116.这样版本在98-116之间无法升级的浏览器,也可以使用这个兼容补丁 --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 1069244..ad56884 100644 --- a/src/utils.js +++ b/src/utils.js @@ -25,6 +25,6 @@ export function signalPolyfillNeeded(self) { return ( !!self.AbortController && typeof self.AbortSignal === 'function' && - !self.AbortSignal.prototype.hasOwnProperty('reason') + !self.Object.prototype.hasOwnProperty.call(AbortSignal,'any') ); }