tangled
alpha
login
or
join now
vielle.dev
/
site-archive
0
fork
atom
[Archived] Archived WIP of vielle.dev
0
fork
atom
overview
issues
pulls
pipelines
Set cookie path to / to stop it bloating the cookie list
vielle.dev
8 months ago
c5b7053c
c5994737
verified
This commit was signed with the committer's
known signature
.
vielle.dev
SSH Key Fingerprint:
SHA256:/4bvxqoEh9iMdjAPgcgAgXKZZQTROL3ULiPt6nH9RSs=
+2
-2
2 changed files
expand all
collapse all
unified
split
src
Base.astro
pages
blog
[id].astro
+1
-1
src/Base.astro
···
30
30
<title>{title} | vielle.dev</title>
31
31
<script>
32
32
// sets the timezone offset
33
33
-
document.cookie = `timezone=${new Date().toString()}`;
33
33
+
document.cookie = `timezone=${new Date().toString()};path=/`;
34
34
</script>
35
35
<!-- default styles (rem, *) -->
36
36
<style is:global>
+1
-1
src/pages/blog/[id].astro
···
88
88
89
89
const updateColourScheme = () => {
90
90
root.style.colorScheme = lightMode ? "light" : "dark";
91
91
-
document.cookie = `colour-mode=${root.style.colorScheme}`;
91
91
+
document.cookie = `colour-mode=${root.style.colorScheme};path=/`;
92
92
93
93
modeToggled[lightMode ? "light" : "dark"].forEach((el) => {
94
94
if (!(el instanceof SVGElement || el instanceof HTMLElement)) return;