From f09e448d4dec1a531359c3f4dfc693b2fd609541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Lach=C3=A8ze?= Date: Wed, 5 Jul 2017 17:01:30 +0200 Subject: [PATCH] :memo: --- docs/api/browser-window.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 4bb07cbb55d7..4380d420f021 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -379,7 +379,7 @@ remove the reference to the window and avoid using it any more. #### Event: 'session-end' _Windows_ -Emitted when window session is going to end due to force shutdown or machine restart +Emitted when window session is going to end due to force shutdown or machine restart or session log off. #### Event: 'unresponsive' @@ -536,6 +536,34 @@ Returns `BrowserWindow` - The window that owns the given `webContents`. Returns `BrowserWindow` - The window with the given `id`. +#### `BrowserWindow.addExtension(path)` + +* `path` String + +Adds Chrome extension located at `path`, and returns extension's name. + +The method will also not return if the extension's manifest is missing or incomplete. + +**Note:** This API cannot be called before the `ready` event of the `app` module +is emitted. + +#### `BrowserWindow.removeExtension(name)` + +* `name` String + +Remove a Chrome extension by name. + +**Note:** This API cannot be called before the `ready` event of the `app` module +is emitted. + +#### `BrowserWindow.getExtensions()` + +Returns `Object` - The keys are the extension names and each value is +an Object containing `name` and `version` properties. + +**Note:** This API cannot be called before the `ready` event of the `app` module +is emitted. + #### `BrowserWindow.addDevToolsExtension(path)` * `path` String