Skip to content

Commit

Permalink
feat: #319 PicGO图形化配置界面-事件监听
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Feb 12, 2023
1 parent ad3ca12 commit 6272909
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions utils/otherlib/siyuanBrowserUtil.js
Expand Up @@ -26,10 +26,7 @@
// 警告⚠️:请勿在非思源笔记浏览器环境调用此文件中的任何方法

import { ElMessage } from "element-plus"
import {
isInSiyuanOrSiyuanNewWin,
isInSiyuanWidget,
} from "~/utils/platform/siyuan/siyuanUtil"
import { isInSiyuanWidget } from "~/utils/platform/siyuan/siyuanUtil"

/**
* 是否在思源浏览器
Expand All @@ -46,7 +43,7 @@ const getSiyuanWindow = () => {
if (isInSiyuanWidget()) {
return parent.window
} else {
if (isInSiyuanOrSiyuanNewWin()) {
if (isInSiyuanNewWinBrowser()) {
return window
}
return window
Expand Down

0 comments on commit 6272909

Please sign in to comment.