Skip to content

Commit

Permalink
Merge pull request #3146 from mineralsfree/ENT-10971
Browse files Browse the repository at this point in the history
ENT-10971: copying link didn't update the url
  • Loading branch information
olehermanse authored Dec 7, 2023
2 parents 9d0f4e8 + f2dc3a4 commit ab12d5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generator/_assets/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ document.addEventListener("DOMContentLoaded", function () {
e.preventDefault();
navigator.clipboard.writeText(a.href);
a.classList.add('url-copied');
history.replaceState(null, null, a.href);
setTimeout(function () { a.classList.remove('url-copied') }, 2000);
}
})
Expand Down

0 comments on commit ab12d5a

Please sign in to comment.