Skip to content

Commit

Permalink
Remove catch block with dummy object
Browse files Browse the repository at this point in the history
  • Loading branch information
flachware committed Sep 15, 2023
1 parent ffcafc8 commit a909bf1
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions assets/javascripts/helpers/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

0 comments on commit a909bf1

Please sign in to comment.