Merge pull request #944 from judicaelandria/fix/url
fix: use location origin
This commit is contained in:
commit
8351936321
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