Skip to content

Commit

Permalink
comment out some debugging tools. dont open console in biult version
Browse files Browse the repository at this point in the history
  • Loading branch information
enjalot committed Mar 28, 2016
1 parent cd3b43f commit 12498a7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 6 additions & 2 deletions electron/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ var uuid = require('uuid');
const ipcMain = electron.ipcMain;
fs = require('fs')

var DEVELOPMENT = process.argv[2] && process.argv[2] == "--dev"

// Report crashes to our server.
//electron.crashReporter.start();

Expand Down Expand Up @@ -54,7 +56,9 @@ app.on('ready', function() {
});

var webContents = mainWindow.webContents;
webContents.openDevTools();

if(DEVELOPMENT)
webContents.openDevTools();

const datadir = app.getPath('userData')
const lastFileStorage = datadir + '/lastFileSelected.json'
Expand Down Expand Up @@ -130,7 +134,7 @@ app.on('ready', function() {

ipcMain.on('delete-test', function(evt, filename) {
console.log("delete", filename)
fs.unlink(savedTestsStorage + "/" + filename, function(err) { if(err) console.log(err) })
fs.unlink(savedTestsStorage + "/" + filename, function(err) { /* if(err) console.log(err) */ })
})


Expand Down
8 changes: 4 additions & 4 deletions electron/js/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,13 +395,13 @@ ipc.on("last-file-selected", function(event, file) {
renderer: HTMLRenderer,
input: {}
}
loadLastFile();
//loadLastFile();
})
function loadLastFile() {
renderStep1(lastProcessorConfig);
currentStep = 2;
//renderStep2(lastProcessorConfig);
//currentStep = 3;
//currentStep = 2;
renderStep2(lastProcessorConfig);
currentStep = 3;
renderNav();
renderCurrentStep();
}
Expand Down
2 changes: 1 addition & 1 deletion electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "DataProofer <dataproofer@dataproofer.org>",
"license": "GPL-3.0",
"scripts": {
"electron": "./node_modules/.bin/electron .",
"electron": "./node_modules/.bin/electron . --dev",
"package-mac": "./node_modules/.bin/electron-packager . Dataproofer --platform=darwin --arch=x64 --icon='icons/_dp-robot.png.icns' --version=0.36.11 --ignore='(executables|sample-datasets)' --out=executables --overwrite"
},
"repository": {
Expand Down

0 comments on commit 12498a7

Please sign in to comment.