set localStorage key

Signed-off-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
Jacob Heider 2022-05-16 13:30:18 -04:00
parent 002aa3bcf9
commit 5e31bf0afc
No known key found for this signature in database
GPG key ID: 95469C7E3DFC90B1

View file

@ -36,6 +36,14 @@
<meta property="og:description" content="something new is brewing." /> <meta property="og:description" content="something new is brewing." />
<meta property="og:image" content="https://tea.xyz/cover.png" /> <meta property="og:image" content="https://tea.xyz/cover.png" />
<meta property="og:image:alt" content="sh &lt;(curl tea.xyz)" /> <meta property="og:image:alt" content="sh &lt;(curl tea.xyz)" />
<script>
const q = window.location.search.match(/[\^\?&]store=[^&]*/)
if(q) {
localStorage.signup = q[0].split('=')[1]
window.location.replace(`${window.location.origin}${window.location.pathname}`)
}
</script>
</head> </head>
<body> <body>