chore: update to standard 12

This commit is contained in:
Samuel Attard 2018-09-14 02:10:51 +10:00
parent 9e85bdb02c
commit 558fff69e7
No known key found for this signature in database
GPG key ID: E89DDE5742D58C4E
198 changed files with 4455 additions and 2940 deletions

View file

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