Skip to content

Commit

Permalink
fix: #280 弹窗新窗口打开404
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Dec 15, 2022
1 parent cc14f05 commit 361b397
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/otherlib/ChromeUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import {
import { LogFactory } from "~/utils/logUtil"
import { isInFirefoxExtension } from "~/utils/otherlib/FirefoxUtil"
import { pathJoin } from "~/utils/util"
import { isInSiyuanNewWinBrowser } from "~/utils/otherlib/siyuanBrowserUtil"

const logger = LogFactory.getLogger()

Expand Down Expand Up @@ -62,7 +63,7 @@ function getPageUrl(pageUrl, split) {
} else {
// 思源笔记链接处理
const from = getQueryString("from")
if (inSiyuan() || from === "siyuan") {
if (inSiyuan() || from === "siyuan" || isInSiyuanNewWinBrowser()) {
url = "/widgets/sy-post-publisher" + url
url = setUrlParameter(url, "from", "siyuan")
}
Expand Down

0 comments on commit 361b397

Please sign in to comment.