Skip to content

Instantly share code, notes, and snippets.

@Comandeer
Created July 7, 2018 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Comandeer/01ee4e0101ac996299aaa0d1d920c364 to your computer and use it in GitHub Desktop.
Save Comandeer/01ee4e0101ac996299aaa0d1d920c364 to your computer and use it in GitHub Desktop.
Converting component's script into Object URI
const jsFile = new Blob( [ script.textContent ], { type: 'application/javascript' } );
const jsURL = URL.createObjectURL( jsFile );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment