diff --git a/browser-version/lib/storage.js b/browser-version/lib/storage.js index 180d7c9..7a5fdfc 100755 --- a/browser-version/lib/storage.js +++ b/browser-version/lib/storage.js @@ -69,6 +69,7 @@ const mkdir = (dir, options, callback) => callback() const ensureDatafileIntegrity = (filename, callback) => callback(null) const crashSafeWriteFileLines = (filename, lines, callback) => { + lines.push('') // Add final new line writeFile(filename, lines.join('\n'), callback) }