-
-
Save Comandeer/3e478f06b438c6984e6246ea9220580b to your computer and use it in GitHub Desktop.
Converting Blog into Object URI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const myJSFile = new Blob( [ 'export default true;' ], { type: 'application/javascript' } ); | |
const myJSURL = URL.createObjectURL( myJSFile ); | |
console.log( myJSURL ); // blob:https://blog.comandeer.pl/8e8fbd73-5505-470d-a797-dfb06ca71333 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment