Skip to content

Commit

Permalink
fix landing
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Jul 12, 2024
1 parent 5b1f27e commit 2d9bb29
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions landing/src/components/Cta.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
import latestRelease from '$lib/latest_release.json'
import mobile from 'is-mobile'
let asset = latestRelease.assets.find((a) => a.platform.toLowerCase() === 'macos') // default to macos
let asset = latestRelease.assets.find((a) => a.platform?.toLowerCase() === 'macos') // default to macos
let ctaClicked = false
const windowsAsset = latestRelease.assets.find((a) => a.platform.toLocaleLowerCase() === 'windows')
const linuxAsset = latestRelease.assets.find((a) => a.platform.toLowerCase() === 'linux')
const macIntelAsset = latestRelease.assets.find((a) => a.platform.toLocaleLowerCase() === 'macos' && a.arch === 'darwin-x86_64')
const macSiliconAsset = latestRelease.assets.find((a) => a.platform.toLowerCase() === 'macos' && a.arch === 'darwin-aarch64')
const windowsAsset = latestRelease.assets.find((a) => a.platform?.toLocaleLowerCase() === 'windows')
const linuxAsset = latestRelease.assets.find((a) => a.platform?.toLowerCase() === 'linux')
const macIntelAsset = latestRelease.assets.find((a) => a.platform?.toLocaleLowerCase() === 'macos' && a.arch === 'darwin-x86_64')
const macSiliconAsset = latestRelease.assets.find((a) => a.platform?.toLowerCase() === 'macos' && a.arch === 'darwin-aarch64')
let mobileModalOpen = false
let isMobile = false
Expand Down Expand Up @@ -56,7 +56,7 @@
onMount(async () => {
const currentOs = getOS()
asset = latestRelease.assets.find((a) => a.platform.toLowerCase() === currentOs) // default to macos
asset = latestRelease.assets.find((a) => a.platform?.toLowerCase() === currentOs) // default to macos
currentURL = location.href
})
Expand Down

0 comments on commit 2d9bb29

Please sign in to comment.