Skip to content

Commit

Permalink
feat: move the email cauculating process to the client side
Browse files Browse the repository at this point in the history
  • Loading branch information
rnmeow committed Oct 5, 2024
1 parent 087d8cd commit 04002c1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,16 @@ let arr = [
0x64, 0x47, 0x39, 0x31, 0x59, 0x32, 0x68, 0x41, 0x63, 0x6d, 0x35, 0x74, 0x5a, 0x57, 0x39, 0x33,
0x4c, 0x6d, 0x4e, 0x76, 0x62, 0x51, 0x3d, 0x3d
]
const emailAddr = atob(String.fromCharCode.apply(null, arr))
if (process.client) {
localStorage.setItem('email', atob(String.fromCharCode.apply(null, arr)))
}
const emailAddr = ref('')
onMounted(() => {
// @ts-ignore
emailAddr.value = localStorage.getItem('email')
})
const age = (
(new Date().getTime() - Date.parse(atob('MjAwOC0xMC0xOQ=='))) /
Expand Down

0 comments on commit 04002c1

Please sign in to comment.