We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96c102f commit b315630Copy full SHA for b315630
test/manual/window/index.html
@@ -12,7 +12,7 @@
12
var win;
13
gui.Window.open('popup.html', {
14
x: 100, y: 100, width: 200, height: 300
15
- }, function(w) { win = w; });
+ }, function(w) { win = w;
16
17
win.on('closed', function() {
18
console.log('popup window is closed.');
@@ -26,6 +26,7 @@
26
win.on('loaded', function() {
27
console.log('new window loaded.');
28
});
29
+ });
30
31
function takeSnapshot() {
32
gui.Window.get().capturePage(function(img) {
@@ -34,7 +35,7 @@
34
35
36
}, 'png');
37
}
-
38
+
39
gui.Window.get().on('close', function() {
40
if (win != null)
41
win.close(true);
0 commit comments