Skip to content

Commit

Permalink
feat: #319 PicGO图形化配置界面-PicGO配置数据迁移
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Feb 8, 2023
1 parent 8b0eb3b commit 58093a2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions public/lib/siyuan/publish-helper.js
Expand Up @@ -67,7 +67,7 @@ const initPublishHelper = () => {
/**
* 思源笔记弹窗参数定义
*/
window.terwer = {
window.syp = {
pageId: undefined,
renderPublishHelper: () => {},
}
Expand All @@ -77,7 +77,7 @@ const initPublishHelper = () => {
* @param pageId 文章ID
* @param pageUrl 页面地址
*/
window.terwer.renderPublishHelper = (pageId, pageUrl) => {
window.syp.renderPublishHelper = (pageId, pageUrl) => {
const { app, BrowserWindow, getCurrentWindow } =
window.require("@electron/remote")
// enable webContents
Expand Down Expand Up @@ -233,8 +233,7 @@ const initPublishHelper = () => {
{ content: html },
(response) => {
window.siyuan.printWin.loadURL(response.data.url)
// 打开开发者工具
// window.siyuan.printWin.webContents.openDevTools()
window.siyuan.printWin.webContents.openDevTools()
}
)
})
Expand Down

0 comments on commit 58093a2

Please sign in to comment.