Commit d17559dd authored by akiraohgaki's avatar akiraohgaki

Cancel ocs protocol in BrowserView

parent 01ecde88
......@@ -223,7 +223,8 @@ app.on('activate', () => {
});
app.on('web-contents-created', (event, webContents) => {
if (webContents.getType() === 'webview') {
const type = webContents.getType();
if (type === 'browserView' || type === 'webview') {
webContents.on('will-navigate', (event, url) => {
if (url.startsWith('ocs://') || url.startsWith('ocss://')) {
// Cancel ocs protocol navigation
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment