Skip to content

Commit

Permalink
fix(windows): Fix some things for Windows and production build
Browse files Browse the repository at this point in the history
Merge pull request #211 from qri-io/windows-prod
  • Loading branch information
dustmop authored Sep 10, 2019
2 parents a9f3302 + 772626e commit 1baf153
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions app/main.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,10 @@ app.on('ready', () =>

mainWindow.on('close', (e) => {
if (!quitting) {
e.preventDefault()
Menu.sendActionToFirstResponder('hide:')
if (Menu && Menu.sendActionToFirstResponder) {
e.preventDefault()
Menu.sendActionToFirstResponder('hide:')
}
}
})

Expand Down
2 changes: 1 addition & 1 deletion webpack.config.production.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ module.exports = merge(baseConfig, {
new webpack.optimize.OccurrenceOrderPlugin(),

new MiniCssExtractPlugin({ // define where to save the file
filename: '[name].bundle.css',
filename: 'bundle.css',
allChunks: true
})
],
Expand Down

0 comments on commit 1baf153

Please sign in to comment.