* fix lint

* restore `notify` require, add eslint disable comment
This commit is contained in:
Nathan Rajlich 2016-07-21 20:26:10 -07:00 committed by Guillermo Rauch
parent f385df4ada
commit 8e86883989
4 changed files with 7 additions and 6 deletions

View file

@ -3,7 +3,7 @@ import React from 'react';
import Color from 'color'; import Color from 'color';
import hterm from '../hterm'; import hterm from '../hterm';
import Component from '../component'; import Component from '../component';
import { getColorList } from '../utils/colors' import { getColorList } from '../utils/colors';
export default class Term extends Component { export default class Term extends Component {

View file

@ -17,7 +17,7 @@ const colorList = [
'lightWhite', 'lightWhite',
'colorCubes', 'colorCubes',
'grayscale' 'grayscale'
] ];
export function getColorList (colors) { export function getColorList (colors) {
// For backwards compatibility, return early if it's already an array // For backwards compatibility, return early if it's already an array
@ -26,6 +26,6 @@ export function getColorList (colors) {
} }
return colorList.map((colorName) => { return colorList.map((colorName) => {
return colors[colorName] return colors[colorName];
}) });
} }

View file

@ -1,6 +1,6 @@
const { autoUpdater } = require('electron'); const { autoUpdater } = require('electron');
const { version } = require('./package'); const { version } = require('./package');
const notify = require('./notify'); const notify = require('./notify'); // eslint-disable-line no-unused-vars
const ms = require('ms'); const ms = require('ms');
const FEED_URL = 'https://hyperterm-updates.now.sh/update/osx'; const FEED_URL = 'https://hyperterm-updates.now.sh/update/osx';

View file

@ -40,8 +40,9 @@ const url = 'file://' + resolve(
console.log('electron will open', url); console.log('electron will open', url);
app.on('window-all-closed', () => { app.on('window-all-closed', () => {
if (process.platform != 'darwin') if (process.platform !== 'darwin') {
app.quit(); app.quit();
}
}); });
app.on('ready', () => { app.on('ready', () => {