Add a newline

This commit is contained in:
Markus Olsson 2017-04-17 22:16:07 +02:00
parent 583dd13724
commit 8db3c11c2d

View file

@ -96,7 +96,7 @@ export class StatsStore {
/** Record the given launch stats. */
public async recordLaunchStats(stats: ILaunchStats) {
Fs.appendFileSync(Path.resolve(OS.homedir(), 'desktop-launch-stats'), JSON.stringify({ date: new Date().toJSON(), ...stats }))
Fs.appendFileSync(Path.resolve(OS.homedir(), 'desktop-launch-stats'), JSON.stringify({ date: new Date().toJSON(), ...stats }) + '\n')
await this.db.launches.add(stats)
}