feat: switch theme color on theme toggling (#454)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
This commit is contained in:
parent
6eef0fe25a
commit
db8c2adaec
19 changed files with 35 additions and 101 deletions
|
@ -3,6 +3,10 @@ import { useRegisterSW } from 'virtual:pwa-register/vue'
|
|||
export const usePWA = () => {
|
||||
const online = useOnline()
|
||||
|
||||
useHead({
|
||||
meta: [{ id: 'theme-color', name: 'theme-color', content: computed(() => isDark.value ? '#111111' : '#ffffff') }],
|
||||
})
|
||||
|
||||
const {
|
||||
needRefresh,
|
||||
updateServiceWorker,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue