update fonts
This commit is contained in:
@@ -32,7 +32,7 @@ const downloadUrl = computed(() => {
|
||||
onMounted(async () => {
|
||||
try {
|
||||
const response = await fetch(
|
||||
`${BASE_URL}/dist/${os.value.toLowerCase()}/latest.yml`,
|
||||
`${BASE_URL}/dist/latest-${os.value.toLowerCase()}.yml`,
|
||||
)
|
||||
if (!response.ok) throw new Error(response.statusText)
|
||||
const yaml = await response.text()
|
||||
@@ -44,7 +44,8 @@ onMounted(async () => {
|
||||
if (pathMatch) downloadPath.value = pathMatch[1].trim()
|
||||
} catch {
|
||||
// fallback to placeholder
|
||||
downloadPath.value = `takerofnotes-app-0.2.0.${os.value === 'Windows' ? 'exe' : os.value === 'macOS' ? 'dmg' : 'AppImage'}`
|
||||
// downloadPath.value = `takerofnotes-app-0.2.0.${os.value === 'Windows' ? 'exe' : os.value === 'macOS' ? 'dmg' : 'AppImage'}`
|
||||
console.error('Failed to fetch latest version info')
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
@@ -53,7 +54,7 @@ onMounted(async () => {
|
||||
|
||||
<style lang="scss">
|
||||
main.splash {
|
||||
height: calc(100 * var(--vh));
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user