File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
layers/base/app/components Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,17 @@ const cookie = useBcCookie<'dark' | 'light'>('theme')
44colorMode .preference = cookie .value || ' dark'
55const handleUpdate = () => {
66 cookie .value = colorMode .preference as ' dark' | ' light'
7+ // due to a bug in @nuxtjs/color-mode
8+ // which does not update, when using browser back/forward buttons
9+ document .documentElement .dataset .theme = colorMode .preference
710}
811 </script >
912
1013<template >
14+ <pre >
15+ {{ colorMode }}
16+ {{ cookie }}
17+ </pre >
1118 <BaseSwitch
1219 v-model =" colorMode.preference"
1320 class =" w-fit"
Original file line number Diff line number Diff line change @@ -71,6 +71,13 @@ export default defineNuxtConfig({
7171 'resize-detector' ,
7272 ] ,
7373 } ,
74+ routeRules : {
75+ '**' : {
76+ headers : {
77+ 'Cache-Control' : 'no-store' ,
78+ } ,
79+ } ,
80+ } ,
7481 devServer : {
7582 host : 'local.beaconcha.in' ,
7683 https : {
You can’t perform that action at this time.
0 commit comments