|
@@ -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) {
|