From 6272909c35cfdb549f5ec43a6cdee1aa630fab7f Mon Sep 17 00:00:00 2001 From: terwer Date: Mon, 13 Feb 2023 00:01:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20#319=20PicGO=E5=9B=BE=E5=BD=A2=E5=8C=96?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=95=8C=E9=9D=A2-=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E7=9B=91=E5=90=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/otherlib/siyuanBrowserUtil.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/utils/otherlib/siyuanBrowserUtil.js b/utils/otherlib/siyuanBrowserUtil.js index b9c95b39..83e5aeb2 100644 --- a/utils/otherlib/siyuanBrowserUtil.js +++ b/utils/otherlib/siyuanBrowserUtil.js @@ -26,10 +26,7 @@ // 警告⚠️:请勿在非思源笔记浏览器环境调用此文件中的任何方法 import { ElMessage } from "element-plus" -import { - isInSiyuanOrSiyuanNewWin, - isInSiyuanWidget, -} from "~/utils/platform/siyuan/siyuanUtil" +import { isInSiyuanWidget } from "~/utils/platform/siyuan/siyuanUtil" /** * 是否在思源浏览器 @@ -46,7 +43,7 @@ const getSiyuanWindow = () => { if (isInSiyuanWidget()) { return parent.window } else { - if (isInSiyuanOrSiyuanNewWin()) { + if (isInSiyuanNewWinBrowser()) { return window } return window