From 586724ede11c83c9a4edb0eb48e170709f8df103 Mon Sep 17 00:00:00 2001 From: Mattk70 Date: Sun, 15 Oct 2023 12:53:56 +0100 Subject: [PATCH] removed json parse from axios response --- main.js | 3 +-- package.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index c21cfac6..426cd4df 100644 --- a/main.js +++ b/main.js @@ -30,8 +30,7 @@ autoUpdater.logger.transports.file.level = 'info'; async function fetchReleaseNotes(version) { try { const response = await axios.get(`https://api.github.com/repos/Mattk70/Chirpity-Electron/releases/latest`); - const release = JSON.parse(response); - if (release.data && release.data.body) { + if (response.data && response.data.body) { return response.data.body; } } catch (error) { diff --git a/package.json b/package.json index 79797c35..bcf9dd83 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chirpity", - "version": "0.9.9", + "version": "0.9.10", "description": "Chirpity Nocmig", "main": "main.js", "scripts": {