From 09efdc117b390931a57a5ee072243e50f23c4cd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Tue, 13 Feb 2024 13:52:42 +0100 Subject: [PATCH] fixup! keep `logs.get()` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miroslav Bajtoš --- main/core.js | 2 +- main/logs.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/core.js b/main/core.js index f70feb0c9..7b4a9cd96 100644 --- a/main/core.js +++ b/main/core.js @@ -39,7 +39,7 @@ async function setup (ctx) { ctx.showUI() const { filePath } = await dialog.showSaveDialog(opts) if (filePath) { - await fs.writeFile(filePath, logs.getLines()) + await fs.writeFile(filePath, logs.get()) } } await maybeMigrateFiles() diff --git a/main/logs.js b/main/logs.js index 5dae33d0f..9c3173ee2 100644 --- a/main/logs.js +++ b/main/logs.js @@ -13,7 +13,7 @@ class Logs { this.#logs.splice(0, this.#logs.length - 100) } - getLines () { + get () { return this.getLastLines(Infinity) }