Skip to content

Commit

Permalink
developer tools enabled on environment var
Browse files Browse the repository at this point in the history
  • Loading branch information
konsumer committed Aug 19, 2016
1 parent f1274d6 commit f0e0599
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
var tinder = require('jstinder')

var win = gui.Window.get()
win.showDevTools()

if (process.env.NODE_ENV === 'development') {
win.showDevTools()
}

// make copy/paste work on OSX
var nativeMenuBar = new gui.Menu({ type: 'menubar' })
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "display credentials for facebook authentication on tinder",
"private": true,
"scripts": {
"start": "nwbuild -v 0.12.3 -r app",
"start": "NODE_ENV=development nwbuild -v 0.12.3 -r app",
"build": "nwbuild -v 0.12.3 -p win32,win64,osx64,linux32,linux64 app"
},
"repository": {
Expand Down

0 comments on commit f0e0599

Please sign in to comment.