Reputation: 133
Running into some issues with windows in chrome packaged apps. In the docs it says windows have the function close() and minimize()
window.close(); //works fine
However, when I try to minimize I get this:
window.minimize(); //Uncaught TypeError: Object [object global] has no method 'minimize'
Any ideas?
Upvotes: 2
Views: 2308
Reputation: 133
After fiddling I figured it out:
chrome.app.window.current().minimize();
Works fine now
Upvotes: 5