server: function scope error
This commit is contained in:
parent
48402e277d
commit
9ef97ca1c3
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ export default class Callbacks {
|
|||
return console.error('(ERROR) Could not save: invalid file')
|
||||
}
|
||||
|
||||
fs.writeFile(data.path, data.session, function(err, fdata) {
|
||||
fs.writeFile(data.path, data.session, (err, fdata)=>{
|
||||
|
||||
if (err) return this.ipcServer.send('notify', {
|
||||
class: 'error',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue