server: function scope error

This commit is contained in:
jean-emmanuel 2025-09-15 08:29:42 +02:00
parent 48402e277d
commit 9ef97ca1c3

View file

@ -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',