chore: update to standard 12
This commit is contained in:
parent
9e85bdb02c
commit
558fff69e7
198 changed files with 4455 additions and 2940 deletions
|
@ -1,5 +1,5 @@
|
|||
const {ipcRenderer} = require('electron')
|
||||
const {runInThisContext} = require('vm')
|
||||
const { ipcRenderer } = require('electron')
|
||||
const { runInThisContext } = require('vm')
|
||||
|
||||
// Check whether pattern matches.
|
||||
// https://developer.chrome.com/extensions/match_patterns
|
||||
|
@ -24,7 +24,7 @@ const runContentScript = function (extensionId, url, code) {
|
|||
}
|
||||
|
||||
const runAllContentScript = function (scripts, extensionId) {
|
||||
for (const {url, code} of scripts) {
|
||||
for (const { url, code } of scripts) {
|
||||
runContentScript.call(window, extensionId, url, code)
|
||||
}
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ const runStylesheet = function (url, code) {
|
|||
}
|
||||
|
||||
const runAllStylesheet = function (css) {
|
||||
for (const {url, code} of css) {
|
||||
for (const { url, code } of css) {
|
||||
runStylesheet.call(window, url, code)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue