For Homebrew v2.6.x and below:
brew cask install ngrokFor Homebrew v2.7.x and above:
| // Preserve and restore window state in localStorage. | |
| // Adapted for Electron from nw.js: | |
| // https://github.com/nwjs/nw.js/wiki/Preserve-window-state-between-sessions | |
| // | |
| // As written, it only handles a single-window app. | |
| // | |
| // This code is meant to run in the renderer process. | |
| // To use, load from index.html (or whatever file you loadUrl into your BrowserWindow): | |
| // <script src="winstate.js"></script> |