Fix insecure content errors when loading content from chrome-extension

This commit is contained in:
Alexandre Lachèze 2017-07-07 02:13:29 +02:00 committed by Cheng Zhao
parent fc99785314
commit 5eb4b9ad6f

View file

@ -1,6 +1,8 @@
const {ipcRenderer} = require('electron')
const {ipcRenderer, webFrame} = require('electron')
const {runInThisContext} = require('vm')
webFrame.registerURLSchemeAsPrivileged('chrome-extension')
// Check whether pattern matches.
// https://developer.chrome.com/extensions/match_patterns
const matchesPattern = function (pattern) {