electron/lib/browser
Charles Kerr c83f836faf
refactor: prefer using app.whenReady() (#21972)
* docs: add references to app.whenReady() in isReady

* refactor: prefer app.whenReady()

In the docs, specs, and lib, replace instances of `app.once('ready')`
(seen occasionally) and `app.on('ready')` (extremely common) with
`app.whenReady()`.

It's better to encourage users to use whenReady():
1. it handles the edge case of registering for 'ready' after it's fired
2. it avoids the minor wart of leaving an active listener alive for
an event that wll never fire again
2020-02-03 22:43:22 +00:00
..
api fix: return path from netLog.stopLogging (#21985) 2020-01-31 10:43:02 -08:00
remote feat: warn when remote is used without enableRemoteModule: true (#21546) 2020-01-13 15:23:03 +09:00
chrome-extension-shim.js refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
chrome-extension.js refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
crash-reporter-init.js fix: use crashpad on Windows (#18483) 2019-06-13 15:42:21 +09:00
default-menu.ts refactor: make shell.OpenExternal async (#17135) 2019-05-03 13:53:45 -07:00
desktop-capturer.ts fix: free screen and window capturers immediately after we're finished with them (#20156) 2019-09-17 09:48:31 -07:00
devtools.ts refactor: replace ipcRendererUtils.invoke() with ipcRendererInternal.invoke() (#19574) 2019-08-23 15:45:50 -07:00
guest-view-manager.js fix: NativeImage serialization of <webview>.capturePage() result (#20825) 2019-11-12 21:56:17 +01:00
guest-window-manager.js fix: load window-setup in sandboxed renderer (#21416) 2020-01-06 22:23:03 +01:00
init.ts refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
ipc-main-impl.ts refactor: replace ipcRendererUtils.invoke() with ipcRendererInternal.invoke() (#19574) 2019-08-23 15:45:50 -07:00
ipc-main-internal-utils.ts refactor: take advantage of structured clone algorithm in the remote module (#20427) 2019-10-10 09:59:08 -04:00
ipc-main-internal.ts refactor: replace ipcRendererUtils.invoke() with ipcRendererInternal.invoke() (#19574) 2019-08-23 15:45:50 -07:00
navigation-controller.js update (#21915) 2020-01-29 18:42:25 +09:00
rpc-server.js fix: load window-setup in sandboxed renderer (#21416) 2020-01-06 22:23:03 +01:00
utils.ts refactor: allow requiring modules with no side effects (#17496) 2019-04-30 09:46:08 +09:00