Skip to content

Instantly share code, notes, and snippets.

@zhchbin
Created January 13, 2013 05:40
Show Gist options
  • Save zhchbin/4522522 to your computer and use it in GitHub Desktop.
Save zhchbin/4522522 to your computer and use it in GitHub Desktop.
Hide icon from task bar. For node-webkit #251
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Testing</title>
<script type="text/javascript">
var gui = require('nw.gui');
var win = gui.Window.get();
gui.Window.open('pop.html', {
show_in_taskbar: false
});
</script>
</head>
<body>
<p>This window without taskbar icon.</p>
</body>
</html>
{
"name": "nw-demo",
"main": "index.html",
"window": {
"show_in_taskbar" : false
}
}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Popup Window</title>
</head>
<body>
<p>This window without taskbar icon.</p>
</body>
</html>
@Subash
Copy link

Subash commented Apr 24, 2013

Thanks.

@ognb
Copy link

ognb commented Aug 13, 2013

Does not work that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment