Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
chore: ts style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
outloudvi committed Aug 21, 2021
1 parent 60b0def commit 752cd43
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/BaseButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
pending = true
const audio = playerCtx.addAudio(assetBasePath + selectFile())
const playTimeout = setTimeout(() => {
window?.errorFormatter(
window.errorFormatter?.(
$format('Voices are still loading. Please be patient...')
)
}, 1500)
Expand All @@ -82,7 +82,7 @@
clearTimeout(playTimeout)
})
.catch((e) => {
window?.errorFormatter(
window?.errorFormatter?.(
$format('Error in the playback:') + ' ' + String(e)
)
})
Expand Down
4 changes: 2 additions & 2 deletions src/components/Board.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
contentReady = -1
const err = new Event('loadfailed')
window.dispatchEvent(err)
window?.errorFormatter(
window?.errorFormatter?.(
$format('Sound list fetch error:') + ' ' + String(e)
)
console.error('Failed to fetch sounds')
Expand All @@ -121,7 +121,7 @@
categories = await fetch(config.categories)
.then((x) => x.json())
.catch((e) => {
window?.errorFormatter(
window?.errorFormatter?.(
$format('Categories fetch error:') + ' ' + String(e)
)
console.error('Failed to fetch categories')
Expand Down
2 changes: 1 addition & 1 deletion src/components/FullscreenAnim.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { onMount } from 'svelte'
import lottie from 'lottie-web'
let svgAnim
let svgAnim: any
onMount(async () => {
lottie.loadAnimation({
Expand Down
2 changes: 1 addition & 1 deletion src/utils/storage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function getKey(key: string): string {
export function getKey(key: string): string | null {
try {
return localStorage.getItem(key)
} catch (_) {
Expand Down

0 comments on commit 752cd43

Please sign in to comment.