Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Nov 22, 2019
1 parent 050c2b3 commit be57e1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,11 @@ const isOSX = process.platform === 'darwin';
const isDevMode = process.env.NODE_ENV === 'development';

const electron = require('electron');
const webContents = electron.webContents;
const ipcMain = electron.ipcMain;
const path = require('path');
const fs = require('fs');
const Servez = require('servez-lib');
const colorSupport = require('color-support') || {}
const colorSupport = require('color-support') || {};
const c = require('ansi-colors');

const app = electron.app;
Expand Down Expand Up @@ -118,13 +117,6 @@ c.enabled = colorSupport.hasBasic || !isShell;
let skipSaveBecauseStartedByShell = isShell;

function createWindow() {
const {width: screenWidth, height: screenHeight} = electron.screen.getPrimaryDisplay().workAreaSize;
const space = 50;
const x = space;
const y = space;
const width = screenWidth - space * 2;
const height = screenHeight - space * 2;

mainWindow = new BrowserWindow({
webPreferences: {
nodeIntegration: true
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const $ = document.querySelector.bind(document);
const {ipcRenderer, remote} = require('electron')
const {ipcRenderer, remote} = require('electron');
const dialog = remote.dialog;
const fs = require('fs');

Expand Down

0 comments on commit be57e1c

Please sign in to comment.