Skip to content

Commit

Permalink
fix save / publish issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mathisonian committed Feb 19, 2021
1 parent b83cb3c commit f6e4f8c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/main/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,17 @@ class Main {
// Send to render process the url
this.mainWindow.webContents.send('publishing');

fs.writeFileSync(this.filePath, content);

this.idyll
.build(this.workingDir)
.on('update', () => {
this.publish();
})
.on('error', err => {
console.log(err);
this.mainWindow.webContents.send('pub-error', err.message);
});
fs.writeFile(this.filePath, content, () => {
this.idyll
.build(this.workingDir)
.on('update', () => {
this.publish();
})
.on('error', err => {
console.log(err);
this.mainWindow.webContents.send('pub-error', err.message);
});
});
}
});
// import dataset
Expand Down

0 comments on commit f6e4f8c

Please sign in to comment.