From a67e37740721f4e0ac984afcfaee592063177bc0 Mon Sep 17 00:00:00 2001 From: piquark6046 Date: Sat, 28 Dec 2024 07:22:48 +0000 Subject: [PATCH] fix: app initialization failed Fix https://github.com/List-KR/NamuLink/issues/183 Fix https://github.com/List-KR/NamuLink/issues/184 --- package.json | 2 +- sources/banner.txt | 2 +- sources/src/index.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 20aa5f5..068db89 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@list-kr/namulink", - "version": "5.2.0", + "version": "5.2.1", "description": "", "type": "module", "scripts": { diff --git a/sources/banner.txt b/sources/banner.txt index a802e79..3bd3a7a 100644 --- a/sources/banner.txt +++ b/sources/banner.txt @@ -8,7 +8,7 @@ // @downloadURL https://cdn.jsdelivr.net/npm/@list-kr/namulink@latest/dist/NamuLink.user.js // @license MIT // -// @version 5.2.0 +// @version 5.2.1 // @author PiQuark6046 and contributors // // @match https://namu.wiki/* diff --git a/sources/src/index.ts b/sources/src/index.ts index aabc40e..38b9e1b 100644 --- a/sources/src/index.ts +++ b/sources/src/index.ts @@ -96,7 +96,7 @@ Win.Object.prototype.toString = new Proxy(Win.Object.prototype.toString, { } if (TensorResult.every((Result) => Result >= 3) && typeof ThisArg['content'] !== 'object') { HideLeftover() - throw new Error() + return [] } return Reflect.apply(Target, ThisArg, Args) }