Skip to content

Instantly share code, notes, and snippets.

@regevbr
Last active January 17, 2019 16:43
Show Gist options
  • Save regevbr/397c3133522e5daa03e5e3012655e7b9 to your computer and use it in GitHub Desktop.
Save regevbr/397c3133522e5daa03e5e3012655e7b9 to your computer and use it in GitHub Desktop.
const scriptElement = document.createElement('script');
scriptElement.setAttribute('src','//s7.addthis.com/js/300/addthis_widget.js');
const headElement = document.getElementsByTagName('head')[0];
head.appendChild(scriptElement);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment