Created
April 8, 2014 20:26
-
-
Save MaxGfeller/10186119 to your computer and use it in GitHub Desktop.
Make globals like document, window etc. available in a node-webkit application
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
<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