You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/References/App.md
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,14 @@ Send the `close` event to all windows of current app, if no window is blocking t
60
60
61
61
These 2 functions crashes the browser process and the renderer process respectively, to test the [Crash dump](../For Developers/Understanding Crash Dump.md) feature.
62
62
63
+
## App.enableComponent(component, callback)
64
+
65
+
!!! warning "Experimental"
66
+
This API is experimental and subject to change.
67
+
68
+
*`component``{String}` ID of component; currently only `WIDEVINE` is supported.
69
+
*`callback``function(version)` callback after the component is enabled; `version` string parameter is the version of the enabled component. '0.0.0.0' means it's not installed. Use `App.updateComponent()` to install it.
70
+
63
71
## App.getProxyForURL(url)
64
72
65
73
*`url``{String}` the URL to query for proxy
@@ -177,6 +185,14 @@ Unregisters a global keyboard shortcut.
177
185
178
186
See [Shortcut](Shortcut.md) for more information.
179
187
188
+
## App.updateComponent(component, callback)
189
+
190
+
!!! warning "Experimental"
191
+
This API is experimental and subject to change.
192
+
193
+
*`component``{String}` ID of component; currently only `WIDEVINE` is supported.
194
+
*`callback``function(success)` callback after the component is updated; `success` is a boolean parameter for the update result.
195
+
180
196
## Event: open(args)
181
197
182
198
*`args``{String}` the full command line of the program.
0 commit comments