Skip to content
This repository has been archived by the owner on Nov 3, 2019. It is now read-only.

Commit

Permalink
Fixing tests for builds
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolinicolae committed Oct 10, 2017
1 parent 0f1c5ac commit 0d9a5a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -28,6 +28,7 @@ install:
- curl -L https://yarnpkg.com/latest.tar.gz | tar xvz && mv yarn-* $HOME/.yarn
- export PATH="$HOME/.yarn/bin:$PATH"
- yarn
- yarn test

script:
- yarn dist
Expand Down
13 changes: 4 additions & 9 deletions app/src/main/menus.js
Expand Up @@ -3,12 +3,10 @@ const path = require('path')
const isPlatform = require('./../common/is-platform')
const {app, BrowserWindow, Menu, shell, dialog, nativeImage} = require('electron')
const config = require('./config')

const win = BrowserWindow.getAllWindows()[0]
const appName = app.getName()

function sendAction (action) {
const win = BrowserWindow.getAllWindows()[0]

if (isPlatform('macOS')) {
win.restore()
}
Expand Down Expand Up @@ -229,14 +227,11 @@ const template = [{
role: 'window',
submenu: [{
role: 'minimize'
},
{
}, {
role: 'close'
},
{
}, {
role: 'quit'
},
]
}]
},
{
role: 'help',
Expand Down

0 comments on commit 0d9a5a4

Please sign in to comment.