electron-webapps / meteor-electron

Meteor Electron, the easiest way to create a desktop Meteor application
MIT License
326 stars 48 forks source link

minimize, maximize #89

Open LDubya opened 8 years ago

LDubya commented 8 years ago

I'm looking for a way to minimize and maximize (and unmaximize) the window.

We don't have access to the 'remote' object so I can't do something like:

window = remote.getCurrentWindow();

and then

// minimize-button clicked:
window.minimize(); // minimize

// maximize-button clicked:
if (!Electron.isFullScreen()) {
  window.maximize();
} else {
  window.unmaximize();
}

how do we minimize / maximize the window programmatically with this package?

taliyahpottruff commented 8 years ago

This along with window.close();