Add favicon, persist banner dismissal in localStorage

This commit is contained in:
Danila Poyarkov 2026-03-01 15:44:25 +03:00
parent c8af1c35e7
commit f8f85970e1
3 changed files with 4 additions and 3 deletions

View file

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 687 B

View file

@ -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>