Skip to content

Commit

Permalink
Add 'development mode' for non-production functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJohnMulligan committed Oct 28, 2020
1 parent 13c9f6a commit 388465a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ const port = 8888;
const host = '127.0.0.1';
// let sock = undefined;
const tcpevents = new TcpEventEmitter()

// Get the current window
var win = nw.Window.get();
// Open the Dev Tools every time (used for debugging only), it defaults to the console which is what we need
win.showDevTools()
// run in development mode?
const isDevMode = false

if(isDevMode){
// Get the current window
var win = nw.Window.get();
// Open the Dev Tools every time (used for debugging only), it defaults to the console which is what we need
win.showDevTools()
}

const bleMod =new BleModule()

Expand Down

0 comments on commit 388465a

Please sign in to comment.