diff --git a/electron/electron.js b/electron/electron.js index 388f379a9..054c2312c 100644 --- a/electron/electron.js +++ b/electron/electron.js @@ -145,6 +145,28 @@ function createMainWindow() { } }) + mainWindow.webContents.session.setPermissionRequestHandler((webContents, permission, callback) => { + const allowedPermissions = [ + 'cookies', // cookies + 'media', // 摄像头和麦克风 + 'notifications', // 通知 + 'clipboard-read', // 剪贴板读取 + 'clipboard-write' // 剪贴板写入 + ]; + callback(allowedPermissions.includes(permission)); + }); + + mainWindow.webContents.session.setPermissionCheckHandler((webContents, permission) => { + const allowedPermissions = [ + 'cookies', + 'media', + 'notifications', + 'clipboard-read', + 'clipboard-write' + ]; + return allowedPermissions.includes(permission); + }); + mainWindow.on('page-title-updated', (event, title) => { if (title == "index.html") { event.preventDefault() diff --git a/resources/assets/js/pages/manage/components/MeetingManager.vue b/resources/assets/js/pages/manage/components/MeetingManager/index.vue similarity index 97% rename from resources/assets/js/pages/manage/components/MeetingManager.vue rename to resources/assets/js/pages/manage/components/MeetingManager/index.vue index f116dde16..cdd7f2705 100644 --- a/resources/assets/js/pages/manage/components/MeetingManager.vue +++ b/resources/assets/js/pages/manage/components/MeetingManager/index.vue @@ -60,10 +60,10 @@ fullscreen>