Skip to content

Commit 1ab6444

Browse files
authored
Update noteSaved.js - all params from hash
1 parent d7ae2f1 commit 1ab6444

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

resources/js/noteSaved.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ import QRCode from 'qrcode'
44
export class NoteSaved {
55

66
constructor() {
7-
const hash = window.location.hash.slice(1)
8-
const id = new URLSearchParams(window.location.search).get('id')
7+
8+
const ff = new URLSearchParams(window.location.hash.slice(1))
9+
const hash = ff.get('hash')
10+
const id = ff.get('id')
11+
912

1013
const clearnetShareLink = `${document.querySelector('meta[name="clearnet"]').getAttribute('content')}/decrypt/${id}#${hash}`
1114
document.getElementById('clearnetShareLink').href = clearnetShareLink
@@ -18,4 +21,4 @@ export class NoteSaved {
1821
QRCode.toCanvas(document.getElementById('darknetShareQR'), dakrnetShareLink)
1922
])
2023
}
21-
}
24+
}

0 commit comments

Comments
 (0)