Update URL and delete state when going back to editor

This commit is contained in:
2021-01-16 17:20:02 +01:00
parent 015e5713e5
commit ab1de5a22a
3 changed files with 13 additions and 1 deletions

View File

@ -14,6 +14,9 @@ function showLink() {
function removeLink() {
var link = location.origin
history.pushState('', '', link)
var linkEl = document.getElementById('shareLink')
linkEl.href = ''
linkEl.innerHTML = ''