Skip to content

Instantly share code, notes, and snippets.

@vitaliy-bobrov
Created December 20, 2018 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vitaliy-bobrov/b3fb19106a94436d5a19a4fa1eb3fe2f to your computer and use it in GitHub Desktop.
Save vitaliy-bobrov/b3fb19106a94436d5a19a4fa1eb3fe2f to your computer and use it in GitHub Desktop.
const reader = new FileReader();
reader.addEventListener('load', () => {
CSS.paintWorklet.addModule(reader.result);
});
reader.readAsText(blob);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment