mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-10 02:30:09 +08:00
🎨 桌面端禁止自动播放多媒体 https://github.com/siyuan-note/siyuan/issues/7587
This commit is contained in:
parent
2cc8b860c2
commit
6b54f1493c
@ -192,6 +192,7 @@ const boot = () => {
|
||||
webviewTag: true,
|
||||
webSecurity: false,
|
||||
contextIsolation: false,
|
||||
autoplayPolicy: 'user-gesture-required' // 桌面端禁止自动播放多媒体 https://github.com/siyuan-note/siyuan/issues/7587
|
||||
},
|
||||
frame: "darwin" === process.platform,
|
||||
titleBarStyle: "hidden",
|
||||
@ -751,6 +752,7 @@ app.whenReady().then(() => {
|
||||
nodeIntegration: true,
|
||||
webviewTag: true,
|
||||
webSecurity: false,
|
||||
autoplayPolicy: 'user-gesture-required' // 桌面端禁止自动播放多媒体 https://github.com/siyuan-note/siyuan/issues/7587
|
||||
},
|
||||
});
|
||||
win.loadURL(data.url);
|
||||
|
@ -468,6 +468,7 @@ const renderPDF = (id: string) => {
|
||||
nodeIntegration: true,
|
||||
webviewTag: true,
|
||||
webSecurity: false,
|
||||
autoplayPolicy: 'user-gesture-required' // 桌面端禁止自动播放多媒体 https://github.com/siyuan-note/siyuan/issues/7587
|
||||
},
|
||||
});
|
||||
ipcRenderer.send(Constants.SIYUAN_EXPORT_PREVENT, window.siyuan.printWin.id);
|
||||
|
Loading…
Reference in New Issue
Block a user