Skip to content

Commit

Permalink
Fix mobile compatibility: dictionary view won't load on mobile due to…
Browse files Browse the repository at this point in the history
… the non-standard API `setImmediate` (#64)
  • Loading branch information
oxdc authored Feb 10, 2022
1 parent ac6ae89 commit 547058c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/dictionary/dictionaryView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
let buttons: HTMLElement[] = [];
onMount(() =>
setImmediate(() => {
setTimeout(() => {
setIcon(buttons[0], "languages", 20);
setIcon(buttons[1], "cloud", 20);
setIcon(buttons[2], "bullet-list", 20);
setIcon(buttons[3], "uppercase-lowercase-a", 20);
setIcon(buttons[4], "documents", 20);
})
}, 0)
);
const debouncedSearch = debounce(search, 800, true);
Expand Down

0 comments on commit 547058c

Please sign in to comment.