diff --git a/web/src/components/misc/NotchSticker.svelte b/web/src/components/misc/NotchSticker.svelte new file mode 100644 index 00000000..84c3cc76 --- /dev/null +++ b/web/src/components/misc/NotchSticker.svelte @@ -0,0 +1,101 @@ + + +
+ + diff --git a/web/src/components/save/buttons/DownloadButton.svelte b/web/src/components/save/buttons/DownloadButton.svelte index 96dea5a5..da01fe4a 100644 --- a/web/src/components/save/buttons/DownloadButton.svelte +++ b/web/src/components/save/buttons/DownloadButton.svelte @@ -2,7 +2,7 @@ import '@fontsource-variable/noto-sans-mono'; import API from "$lib/api"; - import device from '$lib/device'; + import { device } from '$lib/device'; export let url: string; @@ -35,7 +35,7 @@ } const downloadFile = (url: string) => { - if (device.isIOS) { + if (device.is.iOS) { return navigator?.share({ url }).catch(() => {}); } else { return window.open(url, '_blank'); diff --git a/web/src/components/sidebar/Sidebar.svelte b/web/src/components/sidebar/Sidebar.svelte index 35a8e858..9eef6cc8 100644 --- a/web/src/components/sidebar/Sidebar.svelte +++ b/web/src/components/sidebar/Sidebar.svelte @@ -1,6 +1,8 @@