Last active
October 22, 2015 20:56
-
-
Save mernen/905586e4e200abe438fd to your computer and use it in GitHub Desktop.
node-webkit v0.10.1 crash when opening window - https://github.com/rogerwang/node-webkit/issues/2171
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
{ | |
"name": "nw-open-crash", | |
"main": "window1.html" | |
} |
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
<p>This is Window 1.</p> | |
<button onclick="open2()">Go to window 2</button> | |
<script src="window1.js"></script> |
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
var gui = require("nw.gui"); | |
function open2() { | |
gui.Window.open("window2.html"); | |
gui.Window.get().close(); | |
} |
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
<p>This is Window 2.</p> | |
<button onclick="open1()">Go to Window 1</button> | |
<script src="window2.js"></script> |
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
var gui = require("nw.gui"); | |
function open1() { | |
gui.Window.open("window1.html"); | |
gui.Window.get().close(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment