mirror of
https://github.com/ivabus/www
synced 2024-11-21 21:15:06 +03:00
set localStorage key
Signed-off-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
002aa3bcf9
commit
5e31bf0afc
1 changed files with 8 additions and 0 deletions
|
@ -36,6 +36,14 @@
|
|||
<meta property="og:description" content="something new is brewing." />
|
||||
<meta property="og:image" content="https://tea.xyz/cover.png" />
|
||||
<meta property="og:image:alt" content="sh <(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>
|
||||
|
||||
<body>
|
||||
|
|
Loading…
Reference in a new issue