Update URL and delete state when going back to editor
This commit is contained in:
@ -14,6 +14,9 @@ function showLink() {
|
||||
|
||||
function removeLink() {
|
||||
|
||||
var link = location.origin
|
||||
history.pushState('', '', link)
|
||||
|
||||
var linkEl = document.getElementById('shareLink')
|
||||
linkEl.href = ''
|
||||
linkEl.innerHTML = ''
|
||||
|
||||
Reference in New Issue
Block a user