This commit is contained in:
Vanessa 2023-03-07 15:06:50 +08:00
parent 2a214fe50e
commit e8ade79630
7 changed files with 12 additions and 16 deletions

View file

@ -192,7 +192,7 @@ const boot = () => {
webviewTag: true,
webSecurity: false,
contextIsolation: false,
autoplayPolicy: 'user-gesture-required' // 桌面端禁止自动播放多媒体 https://github.com/siyuan-note/siyuan/issues/7587
autoplayPolicy: "user-gesture-required" // 桌面端禁止自动播放多媒体 https://github.com/siyuan-note/siyuan/issues/7587
},
frame: "darwin" === process.platform,
titleBarStyle: "hidden",
@ -752,7 +752,7 @@ app.whenReady().then(() => {
nodeIntegration: true,
webviewTag: true,
webSecurity: false,
autoplayPolicy: 'user-gesture-required' // 桌面端禁止自动播放多媒体 https://github.com/siyuan-note/siyuan/issues/7587
autoplayPolicy: "user-gesture-required" // 桌面端禁止自动播放多媒体 https://github.com/siyuan-note/siyuan/issues/7587
},
});
win.loadURL(data.url);