Skip to content

Instantly share code, notes, and snippets.

@MaxGfeller
Created April 8, 2014 20:26
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 MaxGfeller/10186119 to your computer and use it in GitHub Desktop.
Save MaxGfeller/10186119 to your computer and use it in GitHub Desktop.
Make globals like document, window etc. available in a node-webkit application
<script type="text/javascript">
global.window = window;
global.document = window.document;
global.location = location;
global.history = history;
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment