From a909bf1cdd252af667e6d24372ad5bf8ba64a39f Mon Sep 17 00:00:00 2001 From: Flachware Date: Fri, 15 Sep 2023 19:13:54 +0200 Subject: [PATCH] Remove catch block with dummy object --- assets/javascripts/helpers/release.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/assets/javascripts/helpers/release.js b/assets/javascripts/helpers/release.js index 77acd11..7d6a8f3 100644 --- a/assets/javascripts/helpers/release.js +++ b/assets/javascripts/helpers/release.js @@ -4,14 +4,3 @@ export const getLatestRelease = () => fetch('https://tropy.org/releases/latest?limit=1') .then(res => res.json()) .then(res => res[0]) - {%- if jekyll.environment == "development" %} - .catch(() => ({ - url: 'https://github.com/tropy/tropy/releases/latest', - assets: [ - { platform: 'darwin', arch: 'x64', url: 'https://tropy.org/download/mac/x64' }, - { platform: 'darwin', arch: 'arm64', url: 'https://tropy.org/download/mac/arm64' }, - { platform: 'win32', arch: 'x64', url: 'https://tropy.org/download/windows/x64' }, - { platform: 'linux', arch: 'x64', url: 'https://tropy.org/download/linux/x64' } - ] - })) - {%- endif %}