fix: use location origin
This commit is contained in:
parent
1be09d2204
commit
f55a73f827
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ const ShareMenu = () => {
|
|||
},
|
||||
}
|
||||
const crushed = JSONCrush.crush(JSON.stringify(state))
|
||||
const link = `${window.location.href}/?d=${encodeURIComponent(crushed)}`
|
||||
const link = `${window.location.origin}/?d=${encodeURIComponent(crushed)}`
|
||||
navigator.clipboard.writeText(link)
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
|
|
Loading…
Reference in a new issue