Nativefier/src/helpers
Adam Weeden 72de7b3fca
Refactor app window creation/events + add some unit tests; fix #1197 (#1203)
* Catch promise errors better

* Move subFunctions to bottom of createNewWindow

* Use parents when creating child BrowserWindow instances

* Some about:blank pages have an anchor (for some reason)

* Inject browserWindowOptions better

* Interim refactor to MainWindow object

* Split up the window functions/helpers/events some

* Further separate out window functions + tests

* Add a mock for unit testing functions that access electron

* Add unit tests for onWillPreventUnload

* Improve windowEvents tests

* Add the first test for windowHelpers

* Move WebRequest event handling to node

* insertCSS completely under test

* clearAppData completely under test

* Fix contextMenu require bug

* More tests + fixes

* Fix + add to createNewTab tests

* Convert createMainWindow back to func + work out gremlins

* Move setupWindow away from main since its shared

* Make sure contextMenu is handling promises
2021-06-02 15:18:32 -04:00
..
upgrade Improve user agent handling/provide user agent "short" codes (#1198) 2021-05-21 23:41:13 -04:00
fsHelpers.ts Add an option to upgrade an existing app (fix #1131) (PR #1138) 2021-04-28 22:00:31 -04:00
helpers.test.ts Fix injecting multiple css/js files (fix #458) (#1162) 2021-04-30 11:04:10 -04:00
helpers.ts Refactor app window creation/events + add some unit tests; fix #1197 (#1203) 2021-06-02 15:18:32 -04:00
iconShellHelpers.ts macOS: Fix crash when using --tray (fix #527), and invisible icon (fix #942, fix #668) (#1156) 2021-04-28 20:25:15 -04:00