Fix eslint errors
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
const {app, dialog} = require('electron');
|
||||
const {spawn} = require('child_process');
|
||||
const fs = require('fs');
|
||||
const os = require('os');
|
||||
const path = require('path');
|
||||
|
||||
const {app, dialog} = require('electron');
|
||||
|
||||
const BUTTON_OK = 'OK';
|
||||
const BUTTON_SHOW_DETAILS = 'Show Details';
|
||||
const BUTTON_REOPEN = 'Reopen';
|
||||
|
@@ -1,4 +1,5 @@
|
||||
const fs = require('fs');
|
||||
|
||||
const utils = require('../utils/util');
|
||||
|
||||
const PERMISSION_GRANTED = 'granted';
|
||||
|
@@ -1,6 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
const EventEmitter = require('events');
|
||||
|
||||
const simpleSpellChecker = require('simple-spellchecker');
|
||||
|
||||
/// Following approach for contractions is derived from electron-spellchecker.
|
||||
|
@@ -1,13 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
|
||||
const {
|
||||
app,
|
||||
dialog,
|
||||
ipcMain,
|
||||
shell,
|
||||
} = require('electron');
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
|
||||
const allowedProtocolFile = path.resolve(app.getPath('userData'), 'allowedProtocols.json');
|
||||
var allowedProtocols = [];
|
||||
|
@@ -1,6 +1,7 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const zlib = require('zlib');
|
||||
|
||||
const electron = require('electron');
|
||||
const {app, dialog} = electron;
|
||||
|
||||
|
@@ -1,7 +1,8 @@
|
||||
const {app, BrowserWindow} = require('electron');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const {app, BrowserWindow} = require('electron');
|
||||
|
||||
function saveWindowState(file, window) {
|
||||
var windowState = window.getBounds();
|
||||
windowState.maximized = window.isMaximized();
|
||||
|
@@ -1,6 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
const electron = require('electron');
|
||||
|
||||
const settings = require('../../common/settings');
|
||||
const buildConfig = require('../../common/config/buildConfig');
|
||||
|
||||
@@ -58,7 +59,8 @@ function createTemplate(mainWindow, config, isDev) {
|
||||
role: 'unhide',
|
||||
}, separatorItem, {
|
||||
role: 'quit',
|
||||
}] : [separatorItem, {
|
||||
}] : [
|
||||
separatorItem, {
|
||||
role: 'quit',
|
||||
accelerator: 'CmdOrCtrl+Q',
|
||||
click() {
|
||||
|
@@ -4,6 +4,7 @@ const {
|
||||
app,
|
||||
Menu,
|
||||
} = require('electron');
|
||||
|
||||
const settings = require('../../common/settings');
|
||||
|
||||
function createTemplate(mainWindow, config, isDev) {
|
||||
|
@@ -1,6 +1,7 @@
|
||||
const {ipcMain} = require('electron');
|
||||
const {URL} = require('url');
|
||||
|
||||
const {ipcMain} = require('electron');
|
||||
|
||||
function dequeueRequests(requestQueue, permissionManager, origin, permission, status) {
|
||||
switch (status) {
|
||||
case 'allow':
|
||||
|
@@ -14,10 +14,10 @@ async function setupAutoLaunch(cmd) {
|
||||
isHidden: true,
|
||||
});
|
||||
if (cmd === '--squirrel-uninstall') {
|
||||
// If we're uninstalling, make sure we also delete our auto launch registry key
|
||||
// If we're uninstalling, make sure we also delete our auto launch registry key
|
||||
return appLauncher.disable();
|
||||
} else if (cmd === '--squirrel-install' || cmd === '--squirrel-updated') {
|
||||
// If we're updating and already have an registry entry for auto launch, make sure to update the path
|
||||
// If we're updating and already have an registry entry for auto launch, make sure to update the path
|
||||
const enabled = await appLauncher.isEnabled();
|
||||
if (enabled) {
|
||||
return appLauncher.enable();
|
||||
|
Reference in New Issue
Block a user