Skip to content

Instantly share code, notes, and snippets.

@jonathanwork
Created September 6, 2017 03:42
Show Gist options
  • Select an option

  • Save jonathanwork/52dffb075455d3885048bd8c7097ed2e to your computer and use it in GitHub Desktop.

Select an option

Save jonathanwork/52dffb075455d3885048bd8c7097ed2e to your computer and use it in GitHub Desktop.
work around for electron
<!-- Insert this line above script imports -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<!-- normal script imports etc -->
<!-- Insert this line after script imports -->
<script>if (window.module) module = window.module;</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment