Skip to content

Instantly share code, notes, and snippets.

@mernen
Last active October 22, 2015 20:56
Show Gist options
  • Save mernen/905586e4e200abe438fd to your computer and use it in GitHub Desktop.
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
{
"name": "nw-open-crash",
"main": "window1.html"
}
<p>This is Window 1.</p>
<button onclick="open2()">Go to window 2</button>
<script src="window1.js"></script>
var gui = require("nw.gui");
function open2() {
gui.Window.open("window2.html");
gui.Window.get().close();
}
<p>This is Window 2.</p>
<button onclick="open1()">Go to Window 1</button>
<script src="window2.js"></script>
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