Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Farina16 committed Jun 12, 2019
1 parent c5eee33 commit 2e2cdaf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
10 changes: 5 additions & 5 deletions src/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
<!-- Set `__static` path to static files in production -->
<script>
if (process.env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')
window.addEventListener('beforeunload', function (event) {
event.preventDefault()
event.returnValue = false
});
// window.addEventListener('beforeunload', function (event) {
// event.preventDefault()
// event.returnValue = false
//
// });
</script>

Expand Down
10 changes: 2 additions & 8 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const { autoUpdater } = require("electron-updater");

var gexpProc ;


ipcMain.on('ComplieContract', (event , sourceCode) => {
// var source = 'contract myFirstContract { function g() {} }'
// Setting 1 as second paramateractivates the optimiser
Expand Down Expand Up @@ -79,13 +78,9 @@ function createWindow () {

app.on('ready', createWindow)

app.on('window-all-closed', (event) => {
event.preventDefault();

console.log("i called")
app.on('window-all-closed', () => {
gexpProc.kill();
// app.quit();
//
app.quit();
});

app.on('activate', () => {
Expand All @@ -95,7 +90,6 @@ app.on('activate', () => {
});



let chainError = false;
const runGexp = (path) => {
// console.log("startGexp:path",path);
Expand Down

0 comments on commit 2e2cdaf

Please sign in to comment.