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,4 +1,4 @@
const {remote, shell} = require('electron')
const { remote, shell } = require('electron')
const fs = require('fs')
const path = require('path')
const URL = require('url')
@ -7,7 +7,7 @@ const electronPath = path.relative(process.cwd(), remote.process.execPath)
Array.from(document.querySelectorAll('a[href]')).forEach(link => {
// safely add `?utm_source=default_app
let url = URL.parse(link.getAttribute('href'), true)
url.query = Object.assign(url.query, {utm_source: 'default_app'})
url.query = Object.assign(url.query, { utm_source: 'default_app' })
url = URL.format(url)
link.addEventListener('click', (e) => {