Fix insecure content errors when loading content from chrome-extension
This commit is contained in:
parent
fc99785314
commit
5eb4b9ad6f
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue