Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Medium Menu -11
function onShareClick() {
window.open(`https://twitter.com/intent/tweet?text=${this.shareTxt}`);
this.remove();
document.getSelection().removeAllRanges()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment