mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2025-09-08 18:30:40 +00:00
add password to frontend
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script lang="ts" context="module">
|
||||
export type NoteResult = {
|
||||
password: string
|
||||
id: string
|
||||
password?: string
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -14,7 +14,8 @@
|
||||
|
||||
export let result: NoteResult
|
||||
|
||||
$: url = `${window.location.origin}/note/${result.id}#${result.password}`
|
||||
let url = `${window.location.origin}/note/${result.id}`
|
||||
if (result.password) url += `#${result.password}`
|
||||
|
||||
function reset() {
|
||||
window.location.reload()
|
||||
|
Reference in New Issue
Block a user