Add favicon, persist banner dismissal in localStorage
This commit is contained in:
parent
c8af1c35e7
commit
f8f85970e1
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<link rel="icon" type="image/png" href="/favicon.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>OpenPencil</title>
|
||||
<style>
|
||||
|
|
|
|||
BIN
public/favicon.png
Normal file
BIN
public/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 687 B |
|
|
@ -1,8 +1,9 @@
|
|||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { useLocalStorage } from '@vueuse/core'
|
||||
|
||||
import { IS_TAURI } from '@/constants'
|
||||
|
||||
const dismissed = ref(false)
|
||||
const dismissed = useLocalStorage('safari-banner-dismissed', false)
|
||||
const show = !IS_TAURI && typeof window !== 'undefined' && !window.showSaveFilePicker
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue