From 28e53c48b8856158d79d6b82c14b98849ce15233 Mon Sep 17 00:00:00 2001 From: Lex Lim Date: Wed, 5 Feb 2025 18:10:26 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=9A=E8=BF=87=E5=B0=8F?= =?UTF-8?q?=E7=AA=97=E6=89=93=E5=BC=80=E5=B7=A5=E5=85=B7=E7=AE=B1=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=97=B6=E6=97=A0=E6=B3=95=E8=87=AA=E5=8A=A8=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/ext.isekai.ai-toolbox.launcher.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/ext.isekai.ai-toolbox.launcher.js b/modules/ext.isekai.ai-toolbox.launcher.js index eb49704..468a04e 100644 --- a/modules/ext.isekai.ai-toolbox.launcher.js +++ b/modules/ext.isekai.ai-toolbox.launcher.js @@ -92,7 +92,11 @@ function openAIToolboxPage(token) { }); frame.on('openInNewTab', 'click', () => { - window.open(url, '_blank'); + let urlWithToken = url; + urlWithToken += urlWithToken.indexOf('?') === -1 ? '?' : '&'; + urlWithToken += `token=${token}`; + + window.open(urlWithToken, '_blank'); frame.closeFrame(); frame = null; onFrameClosed();