From ccf9aaa0cb040866a5624c184822c5fe3a543d3a Mon Sep 17 00:00:00 2001
From: Samuel Attard Wird ausgelöst wenn der Nutzer versucht, eine URL mit der App zu öffnen. Your application's
-Info.plist` file must define the URL scheme within the `CFBundleURLTypes` key, and set `NSPrincipalClass` to `AtomApplication`.
error` String - Der error code
+* `url` String
+* `error` String - Der error code
* `certificate` [Certificate](structures/certificate.md)
* `callback` Function
* `isTrusted` Boolean - Gibt an ob das Zertifikat als vertrauenswürdig angesehen werden soll
@@ -422,54 +420,6 @@ Kehrt zurück:
Emitted when `desktopCapturer.getSources()` is called in the renderer process of `webContents`. Calling `event.preventDefault()` will make it return empty sources.
-### Event: 'remote-require' _Deprecated_
-
-Kehrt zurück:
-
-* `event` Event
-* `webContents` [WebContents](web-contents.md)
-* `moduleName` String
-
-Emitted when `remote.require()` is called in the renderer process of `webContents`. Calling `event.preventDefault()` will prevent the module from being returned. Ein eigener Wert kann zurückgegeben werden durch Setzen von `event.returnValue`.
-
-### Event: 'remote-get-global' _Deprecated_
-
-Kehrt zurück:
-
-* `event` Event
-* `webContents` [WebContents](web-contents.md)
-* `globalName` String
-
-Emitted when `remote.getGlobal()` is called in the renderer process of `webContents`. Calling `event.preventDefault()` will prevent the global from being returned. Ein eigener Wert kann zurückgegeben werden durch Setzen von `event.returnValue`.
-
-### Event: 'remote-get-builtin' _Deprecated_
-
-Kehrt zurück:
-
-* `event` Event
-* `webContents` [WebContents](web-contents.md)
-* `moduleName` String
-
-Emitted when `remote.getBuiltin()` is called in the renderer process of `webContents`. Calling `event.preventDefault()` will prevent the module from being returned. Ein eigener Wert kann zurückgegeben werden durch Setzen von `event.returnValue`.
-
-### Event: 'remote-get-current-window' _Deprecated_
-
-Kehrt zurück:
-
-* `event` Event
-* `webContents` [WebContents](web-contents.md)
-
-Emitted when `remote.getCurrentWindow()` is called in the renderer process of `webContents`. Calling `event.preventDefault()` will prevent the object from being returned. Ein eigener Wert kann zurückgegeben werden durch Setzen von `event.returnValue`.
-
-### Event: 'remote-get-current-web-contents' _Deprecated_
-
-Kehrt zurück:
-
-* `event` Event
-* `webContents` [WebContents](web-contents.md)
-
-Emitted when `remote.getCurrentWebContents()` is called in the renderer process of `webContents`. Calling `event.preventDefault()` will prevent the object from being returned. Ein eigener Wert kann zurückgegeben werden durch Setzen von `event.returnValue`.
-
## Methoden
Das `app` Objekt enthält die folgenden Methoden:
@@ -983,7 +933,7 @@ Sets the counter badge for current app. Setting the count to `0` will hide the b
On macOS, it shows on the dock icon. On Linux, it only works for Unity launcher.
-**Note:** Unity launcher requires the existence of a `.desktop` file to work, for more information please read [Desktop Environment Integration][unity-requirement].
+**Note:** Unity launcher requires a `.desktop` file to work. For more information, please read the [Unity integration documentation][unity-requirement].
### `app.getBadgeCount()` _Linux_ _macOS_
@@ -1185,7 +1135,7 @@ An `Integer` property that returns the badge count for current app. Setting the
On macOS, setting this with any nonzero integer shows on the dock icon. On Linux, this property only works for Unity launcher.
-**Note:** Unity launcher requires the existence of a `.desktop` file to work, for more information please read [Desktop Environment Integration][unity-requirement].
+**Note:** Unity launcher requires a `.desktop` file to work. For more information, please read the [Unity integration documentation][unity-requirement].
**Note:** On macOS, you need to ensure that your application has the permission to display notifications for this property to take effect.
@@ -1213,12 +1163,6 @@ A `String` which is the user agent string Electron will use as a global fallback
This is the user agent that will be used when no user agent is set at the `webContents` or `session` level. It is useful for ensuring that your entire app has the same user agent. Set to a custom value as early as possible in your app's initialization to ensure that your overridden value is used.
-### `app.allowRendererProcessReuse`
-
-A `Boolean` which when `true` disables the overrides that Electron has in place to ensure renderer processes are restarted on every navigation. The current default value for this property is `true`.
-
-The intention is for these overrides to become disabled by default and then at some point in the future this property will be removed. This property impacts which native modules you can use in the renderer process. For more information on the direction Electron is going with renderer process restarts and usage of native modules in the renderer process please check out this [Tracking Issue](https://github.com/electron/electron/issues/18397).
-
### `app.runningUnderRosettaTranslation` _macOS_ _Readonly_
A `Boolean` which when `true` indicates that the app is currently running under the [Rosetta Translator Environment](https://en.wikipedia.org/wiki/Rosetta_(software)).
@@ -1233,7 +1177,7 @@ You can use this property to prompt users to download the arm64 version of your
[LSCopyDefaultHandlerForURLScheme]: https://developer.apple.com/library/mac/documentation/Carbon/Reference/LaunchServicesReference/#//apple_ref/c/func/LSCopyDefaultHandlerForURLScheme
[handoff]: https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/Handoff/HandoffFundamentals/HandoffFundamentals.html
[activity-type]: https://developer.apple.com/library/ios/documentation/Foundation/Reference/NSUserActivity_Class/index.html#//apple_ref/occ/instp/NSUserActivity/activityType
-[unity-requirement]: ../tutorial/desktop-environment-integration.md#unity-launcher
+[unity-requirement]: https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles#Adding_shortcuts_to_a_launcher
[mas-builds]: ../tutorial/mac-app-store-submission-guide.md
[Squirrel-Windows]: https://github.com/Squirrel/Squirrel.Windows
[JumpListBeginListMSDN]: https://msdn.microsoft.com/en-us/library/windows/desktop/dd378398(v=vs.85).aspx
diff --git a/content/de-DE/docs/api/auto-updater.md b/content/de-DE/docs/api/auto-updater.md
index df5dcef39e115..af67e7abf504c 100644
--- a/content/de-DE/docs/api/auto-updater.md
+++ b/content/de-DE/docs/api/auto-updater.md
@@ -16,102 +16,88 @@ Außerdem gibt es auf jeder Plattform einige subtile Unterschiede:
### macOS
-Unter MacOS basiert das `autoUpdater` Modul auf [ Squirrel.Mac][squirrel-mac], was bedeutet daß keine spezifische Konfiguration vonnöten ist. Für serverseitige Anforderungen können Sie [Serverunterstützung][server-support] lesen. Beachten Sie, dass
-
- App-Transportsicherheit 0> (ATS) für alle Anforderungen gilt, die im Rahmen des Aktualisierungsprozesses vorgenommen werden. Apps, die ATS deaktivieren müssen, können den Schlüssel ` NSAllowsArbitraryLoads 0> zu ihrer App hinzufügen
- .
Notiz: Eine App muss zuerst signiert werden, um automatisch auf macOS updatet zu werden.
-Dies ist eine Voraussetzung von Squirrel.Mac`.
Im Gegensatz zu Squirrel.Mac kann Windows Updates auf S3 oder einem anderen statischen Dateihost hosten. -Weitere Informationen können in der Dokumentation von Squirrel.Windows gefunden werden.
+Im Gegensatz zu Squirrel.Mac kann Windows Updates auf S3 oder einem anderen statischen Dateihost hosten. Weitere Informationen können in der Dokumentation von [Squirrel.Windows][squirrel-windows] gefunden werden. -Das autoUpdater 0> -Objekt gibt die folgenden Ereignisse aus:
Kehrt zurück:
+Kehrt zurück: - Fehler 0> Fehler
Wird gesendet, wenn beim Aktualisieren ein Fehler auftritt.
+Wird gesendet, wenn beim Aktualisieren ein Fehler auftritt. -Wird gesendet, wenn geprüft wird, ob ein Update gestartet wurde.
+Wird gesendet, wenn geprüft wird, ob ein Update gestartet wurde. -Wird ausgelöst, wenn ein Update verfügbar ist. Das Update wird -automatisch heruntergeladen.
+Wird ausgelöst, wenn ein Update verfügbar ist. Das Update wird automatisch heruntergeladen. -Wird gesendet, wenn kein Update verfügbar ist.
+Wird gesendet, wenn kein Update verfügbar ist. -Kehrt zurück:
+Kehrt zurück: -event` Event
releaseName 0> String
releaseDate 0> Datum
updateURL 0> String
Wird gesendet, wenn ein Update heruntergeladen wurde.
+Unter Windows ist nur `releaseName` verfügbar. -Unter Windows ist nur releaseName 0> verfügbar.
Hinweis: Es ist nicht unbedingt notwendig, dieses Ereignis zu behandeln. Ein fehlerfreie Heruntergeladenes Update wird automatisch übernommen, wenn die App das nächste mal gestartet wird.
+### Ereignis: 'before-quit-for-update' -Dieses Event wird ausgelöst, wenn die Funktion quitAndInstall()` aufgerufen wird.
autoUpdater.setFeedURL(optionen)`
headers` Record (optional) _macOS_ - HTTP-Anfrage-Header.
+* `options` Objekt
+ * `url` String
+ * `headers` Record (optional) _macOS_ - HTTP-Anfrage-Header.
* `serverType` String (optional) _macOS_ - Kann `json` oder `default` sein, siehe dazu [Squirrel.Mac][squirrel-mac] README für weitere informationen.
-Setzt die ` URL 0> und initialisiert den automatischen Updater.
+Setzt die `url` und initialisiert den automatischen Updater.
-autoUpdater.getFeedURL ()`
+### `autoUpdater.getFeedURL()`
-Gibt ` String 0> zurück - Die aktuelle URL des Aktualisierungsfeeds.
+Gibt `String` - Die aktuelle URL des Aktualisierungsfeeds.
-autoUpdater.checkForUpdates ()`
+### `autoUpdater.checkForUpdates()`
Fragt den Server, ob es ein Update gibt. Es muss zuerst `setFeedURL` aufrufen werden, bevor diese API verwendet werden kann.
-
+**Note:** If an update is available it will be downloaded automatically. Calling `autoUpdater.checkForUpdates()` twice will download the update two times.
### `autoUpdater.quitAndInstall()`
@@ -125,6 +111,7 @@ Unter der Haube schließt `autoUpdater.quitAndInstall()` zuerst alle Fenster und
[squirrel-mac]: https://github.com/Squirrel/Squirrel.Mac
[server-support]: https://github.com/Squirrel/Squirrel.Mac#server-support
+[squirrel-windows]: https://github.com/Squirrel/Squirrel.Windows
[installer]: https://github.com/electron/grunt-electron-installer
[installer-lib]: https://github.com/electron/windows-installer
[electron-forge-lib]: https://github.com/electron-userland/electron-forge
diff --git a/content/de-DE/docs/api/browser-window.md b/content/de-DE/docs/api/browser-window.md
index 3308eb656a199..3a59a5db864e3 100644
--- a/content/de-DE/docs/api/browser-window.md
+++ b/content/de-DE/docs/api/browser-window.md
@@ -14,7 +14,7 @@ const win = new BrowserWindow({ width: 800, height: 600 })
win.loadURL('https://github.com')
// Or load a local HTML file
-win.loadURL(`file://${__dirname}/app/index.html`)
+win.loadFile('index.html')
```
## Rahmenloses Fenster
@@ -143,7 +143,7 @@ Es erzeugt ein neues `BrowserWindow` mit nativen Eigenschaften die durch `option
* `frame` Boolean (optional) - Geben Sie `false` an, um ein [Frameless Window](frameless-window.md)zu erstellen. Standard ist `true`.
* `parent` BrowserWindow (optional) - Geben Sie das übergeordnete Fenster an. Standard ist `null`.
* `modal` Boolean (optional) - Gibt an, ob es das Fenster ein modales Fenster sein soll. Diese Funktion funktioniert nur, wenn das Fenster ein untergeordnetes Fenster ist. Standard ist `false`.
- * `acceptFirstMouse` Boolean (optional) - Gibt an, ob die Webansicht ein einzelnes Maus-Down-Ereignis akzeptiert, das gleichzeitig das Fenster aktiviert. Standard ist `false`.
+ * `acceptFirstMouse` Boolean (optional) - Whether clicking an inactive window will also click through to the web contents. Default is `false` on macOS. This option is not configurable on other platforms.
* `disableAutoHideCursor` Boolean (optional) - Ob der Cursor ausgeblendet werden soll, wenn der Benutzer tippt. Standard ist `false`.
* `autoHideMenuBar` Boolean (optional) - Blendet die Menüleiste automatisch aus, es sei denn, die `Alt` Taste wird gedrückt. Standard ist `false`.
* `enableLargerThanScreen` Boolean (optional) - Dieser Wert gibt an, ob das Fenster größer als der Bildschirm sein kann. Nur relevant für macOS, da andere Betriebssysteme standardmäßig Fenster erlauben, die größer als der Bildschirm sind. Standard ist `false`.
@@ -157,11 +157,11 @@ Es erzeugt ein neues `BrowserWindow` mit nativen Eigenschaften die durch `option
* `followWindow` - The backdrop should automatically appear active when the window is active, and inactive when it is not. This is the default.
* `active` - The backdrop should always appear active.
* `inactive` - The backdrop should always appear inactive.
- * `titleBarStyle` String (optional) - The style of window title bar. Standard ist `default`. Mögliche Werte sind:
- * `default` - Resultiert in der opaken, grauen Standardfenstertitelleiste von Mac.
- * `hidden` - Resultiert in einer versteckten Titelleiste und einem Fenster mit voller Inhaltsgröße. Das Fenster hat noch immer die standardmäßigen Steuerelemente ("Ampelleuchten") in der oberen linken Ecke.
- * `hiddenInset` - Resultiert in einer versteckten Titelleiste mit einem alternativem Aussehen, bei dem die Ampelleuchten Buttons vom Fensterrand etwas weiter nach innen gerückt wurden.
- * `customButtonsOnHover` - Results in a hidden title bar and a full size content window, the traffic light buttons will display when being hovered over in the top left of the window. **Note:** This option is currently experimental.
+ * `titleBarStyle` String (optional) _macOS_ _Windows_ - The style of window title bar. Standard ist `default`. Mögliche Werte sind:
+ * `default` - Results in the standard title bar for macOS or Windows respectively.
+ * `hidden` - Results in a hidden title bar and a full size content window. On macOS, the window still has the standard window controls (“traffic lights”) in the top left. On Windows, when combined with `titleBarOverlay: true` it will activate the Window Controls Overlay (see `titleBarOverlay` for more information), otherwise no window controls will be shown.
+ * `hiddenInset` - Only on macOS, results in a hidden title bar with an alternative look where the traffic light buttons are slightly more inset from the window edge.
+ * `customButtonsOnHover` - Only on macOS, results in a hidden title bar and a full size content window, the traffic light buttons will display when being hovered over in the top left of the window. **Note:** This option is currently experimental.
* `trafficLightPosition` [Point](structures/point.md) (optional) - Set a custom position for the traffic light buttons in frameless windows.
* `roundedCorners` Boolean (optional) - Whether frameless window should have rounded corners on macOS. Standard ist `true`.
* `fullscreenWindowTitle` Boolean (optional) _Deprecated_ - Shows the title in the title bar in full screen mode on macOS for `hiddenInset` titleBarStyle. Standard ist `false`.
@@ -176,10 +176,8 @@ Es erzeugt ein neues `BrowserWindow` mit nativen Eigenschaften die durch `option
* `nodeIntegrationInSubFrames` Boolean (optional) - Experimental option for enabling Node.js support in sub-frames such as iframes and child windows. All your preloads will load for every iframe, you can use `process.isMainFrame` to determine if you are in the main frame or not.
* `preload` String (optional) - Gibt ein Skript an das vor allen anderen Skripten geladen wird bevor andere Skripte der Seite ausgeführt werden. Dieses Skript hat immer Zugriff auf die Node APIs, unabhängig davon ob die Node Integration aktiviert ist oder nicht. Der Wert sollte der absolute Pfad zum Skript sein. Wenn die Node Integration ausgeschaltet ist, kann das Preload Skript globale Node Symbole in den Globalen Scope zurückbringen. Siehe [dieses Beispiel](context-bridge.md#exposing-node-global-symbols).
* `sandbox` Boolean (optional) - Wenn gesetzt, wird der Renderer des Fensters in einer Sandbox ausgeführt, wodurch es kompatibel mit der Chromium Sandbox wird und die Node.js Integration deaktiviert wird. Dies ist nicht das gleiche wie `nodeIntegration`, da die APIs die dem Preload Skript zur Verfügung stehen stärker limitiert sind. Lesen sie [hier](../tutorial/sandbox.md) mehr über diese Option.
- * `enableRemoteModule` Boolean (optional) - Whether to enable the [`remote`](remote.md) module. Standard ist `false`.
* `session` [Session](session.md#class-session) (optional) - Sets the session used by the page. Instead of passing the Session object directly, you can also choose to use the `partition` option instead, which accepts a partition string. When both `session` and `partition` are provided, `session` will be preferred. Default is the default session.
* `partition` String (optional) - Sets the session used by the page according to the session's partition string. If `partition` starts with `persist:`, the page will use a persistent session available to all pages in the app with the same `partition`. If there is no `persist:` prefix, the page will use an in-memory session. By assigning the same `partition`, multiple pages can share the same session. Default is the default session.
- * `affinity` String (optional) - When specified, web pages with the same `affinity` will run in the same renderer process. Note that due to reusing the renderer process, certain `webPreferences` options will also be shared between the web pages even when you specified different values for them, including but not limited to `preload`, `sandbox` and `nodeIntegration`. So it is suggested to use exact same `webPreferences` for web pages with the same `affinity`. _Deprecated_
* `zoomFactor` Number (optional) - The default zoom factor of the page, `3.0` represents `300%`. Standard ist `1.0`.
* `javascript` Boolean (optional) - Enables JavaScript support. Standard ist `true`.
* `webSecurity` Boolean (optional) - When `false`, it will disable the same-origin policy (usually using testing websites by people), and set `allowRunningInsecureContent` to `true` if this options has not been set by user. Standard ist `true`.
@@ -206,8 +204,7 @@ Es erzeugt ein neues `BrowserWindow` mit nativen Eigenschaften die durch `option
* `backgroundThrottling` Boolean (optional) - Whether to throttle animations and timers when the page becomes background. This also affects the [Page Visibility API](#page-visibility). Defaults to `true`.
* `offscreen` Boolean (optional) - Whether to enable offscreen rendering for the browser window. Defaults to `false`. See the [offscreen rendering tutorial](../tutorial/offscreen-rendering.md) for more details.
* `contextIsolation` Boolean (optional) - Whether to run Electron APIs and the specified `preload` script in a separate JavaScript context. Defaults to `true`. The context that the `preload` script runs in will only have access to its own dedicated `document` and `window` globals, as well as its own set of JavaScript builtins (`Array`, `Object`, `JSON`, etc.), which are all invisible to the loaded content. The Electron API will only be available in the `preload` script and not the loaded page. This option should be used when loading potentially untrusted remote content to ensure the loaded content cannot tamper with the `preload` script and any Electron APIs being used. This option uses the same technique used by [Chrome Content Scripts][chrome-content-scripts]. You can access this context in the dev tools by selecting the 'Electron Isolated Context' entry in the combo box at the top of the Console tab.
- * `worldSafeExecuteJavaScript` Boolean (optional) - If true, values returned from `webFrame.executeJavaScript` will be sanitized to ensure JS values can't unsafely cross between worlds when using `contextIsolation`. Defaults to `true`. _Deprecated_
- * `nativeWindowOpen` Boolean (optional) - Whether to use native `window.open()`. Defaults to `false`. Child windows will always have node integration disabled unless `nodeIntegrationInSubFrames` is true. **Note:** This option is currently experimental.
+ * `nativeWindowOpen` Boolean (optional) - Whether to use native `window.open()`. Defaults to `false`. Child windows will always have node integration disabled unless `nodeIntegrationInSubFrames` is true. **Note:** The default value will be changing to `true` in Electron 15.
* `webviewTag` Boolean (optional) - Whether to enable the [`` tag](webview-tag.md). Defaults to `false`. **Note:** The `preload` script configured for the `` will have node integration enabled when it is executed so you should ensure remote/untrusted content is not able to create a `` tag with a possibly malicious `preload` script. You can use the `will-attach-webview` event on [webContents](web-contents.md) to strip away the `preload` script and to validate or alter the ``'s initial settings.
* `additionalArguments` String[] (optional) - A list of strings that will be appended to `process.argv` in the renderer process of this app. Useful for passing small bits of data down to renderer process preload scripts.
* `safeDialogs` Boolean (optional) - Whether to enable browser style consecutive dialog protection. Standard ist `false`.
@@ -225,6 +222,7 @@ Es erzeugt ein neues `BrowserWindow` mit nativen Eigenschaften die durch `option
* `bypassHeatCheck` - Bypass code caching heuristics but with lazy compilation
* `bypassHeatCheckAndEagerCompile` - Same as above except compilation is eager. Default policy is `code`.
* `enablePreferredSizeMode` Boolean (optional) - Whether to enable preferred size mode. The preferred size is the minimum size needed to contain the layout of the document—without requiring scrolling. Enabling this will cause the `preferred-size-changed` event to be emitted on the `WebContents` when the preferred size changes. Standard ist `false`.
+ * `titleBarOverlay` [OverlayOptions](structures/overlay-options.md) | Boolean (optional) - When using a frameless window in conjuction with `win.setWindowButtonVisibility(true)` on macOS or using a `titleBarStyle` so that the standard window controls ("traffic lights" on macOS) are visible, this property enables the Window Controls Overlay [JavaScript APIs][overlay-javascript-apis] and [CSS Environment Variables][overlay-css-env-vars]. Specifying `true` will result in an overlay with default system colors. Standard ist `false`. On Windows, the [OverlayOptions](structures/overlay-options.md) can be used instead of a boolean to specify colors for the overlay.
When setting minimum or maximum window size with `minWidth`/`maxWidth`/ `minHeight`/`maxHeight`, it only constrains the users. It won't prevent you from passing a size that does not follow size constraints to `setBounds`/`setSize` or to the constructor of `BrowserWindow`.
@@ -544,6 +542,10 @@ A `Boolean` property that determines whether the window is in simple (pre-Lion)
A `Boolean` property that determines whether the window is in fullscreen mode.
+#### `win.focusable` _Windows_ _macOS_
+
+A `Boolean` property that determines whether the window is focusable.
+
#### `win.visibleOnAllWorkspaces`
A `Boolean` property that determines whether the window is visible on all workspaces.
@@ -1100,15 +1102,15 @@ Captures a snapshot of the page within `rect`. Omitting `rect` will capture the
#### `win.loadURL(url[, options])`
-* ` URL 0> Zeichenfolge
options` Object (optional)
+* `url` String
+* `options` Object (optional)
* `httpReferrer` (String | [Referrer](structures/referrer.md)) (optional) - An HTTP Referrer URL.
* `userAgent` String (optional) - A user agent originating the request.
* `extraHeaders` String (optional) - Extra headers separated by "\n"
* `postData` ([UploadRawData](structures/upload-raw-data.md) | [UploadFile](structures/upload-file.md))[] (optional)
* `baseURLForDataURL` String (optional) - Base URL (with trailing path separator) for files to be loaded by the data URL. This is needed only if the specified `url` is a data URL and needs to load other files.
-Returns `Promise` - the promise will resolve when the page has finished loading (see [`did-finish-load`](web-contents.md#event-did-finish-load)), and rejects if the page fails to load (see [`did-fail-load`](web-contents.md#event-did-fail-load)).
+Gibt `Promise` zurück - das Versprechen wird aufgelöst, wenn die Seite das Laden beendet hat (siehe [`did-finish-load`](web-contents.md#event-did-finish-load)), und lehnt ab, wenn die Seite nicht geladen wird (siehe [`did-fail-load`](web-contents.md#event-did-fail-load)).
Same as [`webContents.loadURL(url[, options])`](web-contents.md#contentsloadurlurl-options).
@@ -1146,7 +1148,7 @@ win.loadURL('http://localhost:8000/post', {
* `search` String (optional) - Passed to `url.format()`.
* `hash` String (optional) - Passed to `url.format()`.
-Returns `Promise` - the promise will resolve when the page has finished loading (see [`did-finish-load`](web-contents.md#event-did-finish-load)), and rejects if the page fails to load (see [`did-fail-load`](web-contents.md#event-did-fail-load)).
+Gibt `Promise` zurück - das Versprechen wird aufgelöst, wenn die Seite das Laden beendet hat (siehe [`did-finish-load`](web-contents.md#event-did-finish-load)), und lehnt ab, wenn die Seite nicht geladen wird (siehe [`did-fail-load`](web-contents.md#event-did-fail-load)).
Same as `webContents.loadFile`, `filePath` should be a path to an HTML file relative to the root of your application. See the `webContents` docs for more information.
@@ -1221,22 +1223,22 @@ Add a thumbnail toolbar with a specified set of buttons to the thumbnail image o
The number of buttons in thumbnail toolbar should be no greater than 7 due to the limited room. Once you setup the thumbnail toolbar, the toolbar cannot be removed due to the platform's limitation. But you can call the API with an empty array to clean the buttons.
-The `buttons` is an array of `Button` objects:
+`buttons` ist ein Array mit `Button` Objekten:
* `Button` Object
- * `icon` [NativeImage](native-image.md) - The icon showing in thumbnail toolbar.
- * `click` Function
- * `tooltip` String (optional) - The text of the button's tooltip.
- * `flags` String[] (optional) - Control specific states and behaviors of the button. By default, it is `['enabled']`.
+ * ` Icon ` [ NativeImage ](native-image.md)-das Symbol zeigt in Thumbnail Leiste.
+ * ` Klicken Sie auf ` Funktion
+ * ` Tooltip ` String (optional)-der Text der Tooltip der Schaltfläche.
+ * `flags` String[] (optional) - Kontrollieren Sie bestimmte Zustände und Verhaltensweisen des Buttons. Standardmäßig ist es `['enabled']`.
-The `flags` is an array that can include following `String`s:
+Die ` Flags ` ist ein Array, das folgende ` Zeichenfolge ` s enthalten kann:
-* `enabled` - The button is active and available to the user.
-* `disabled` - The button is disabled. It is present, but has a visual state indicating it will not respond to user action.
-* `dismissonclick` - When the button is clicked, the thumbnail window closes immediately.
-* `nobackground` - Do not draw a button border, use only the image.
-* `hidden` - The button is not shown to the user.
-* `noninteractive` - The button is enabled but not interactive; no pressed button state is drawn. This value is intended for instances where the button is used in a notification.
+* ` Enabled `-die Schaltfläche ist aktiv und für den Benutzer verfügbar.
+* `disabled` - Der Button ist deaktiviert. Er ist vorhanden, zeigt aber visuell, dass er nicht auf Nutzeraktionen reagiert.
+* ` dismissonclick `-wenn auf die Schaltfläche geklickt wird, wird das Thumbnail-Fenster geschlossen sofort.
+* ` nobackground `-zeichnen Sie keinen Schaltflächenrahmen, sondern verwenden Sie nur das Bild.
+* ` Hidden `-die Schaltfläche wird dem Benutzer nicht angezeigt.
+* `noninteractive` - Der Button ist aktiviert aber nicht interaktiv. Es wird kein gedrückter Button angezeigt. Dieser Wert ist für Instanzen bestimmt, in denen der Button in einer Benachrichtigung verwendet wird.
#### `win.setThumbnailClip(region)` _Windows_
@@ -1344,6 +1346,10 @@ Changes whether the window can be focused.
On macOS it does not remove the focus from the window.
+#### `win.isFocusable()` _macOS_ _Windows_
+
+Returns whether the window can be focused.
+
#### `win.setParentWindow(parent)`
* `parent` BrowserWindow | null
@@ -1453,3 +1459,5 @@ Returns `BrowserView[]` - an array of all BrowserViews that have been attached w
[window-levels]: https://developer.apple.com/documentation/appkit/nswindow/level
[chrome-content-scripts]: https://developer.chrome.com/extensions/content_scripts#execution-environment
[event-emitter]: https://nodejs.org/api/events.html#events_class_eventemitter
+[overlay-javascript-apis]: https://github.com/WICG/window-controls-overlay/blob/main/explainer.md#javascript-apis
+[overlay-css-env-vars]: https://github.com/WICG/window-controls-overlay/blob/main/explainer.md#css-environment-variables
diff --git a/content/de-DE/docs/api/clipboard.md b/content/de-DE/docs/api/clipboard.md
index 0b213fbe6f965..c1b4043e39140 100644
--- a/content/de-DE/docs/api/clipboard.md
+++ b/content/de-DE/docs/api/clipboard.md
@@ -1,10 +1,10 @@
# clipboard
-> Perform copy and paste operations on the system clipboard.
+> Ausführung von Kopier- und Einfüge-Operationen von der Zwischenablage des Betriebssystems.
-Process: [Main](../glossary.md#main-process), [Renderer](../glossary.md#renderer-process)
+Prozess: [Main](../glossary.md#main-process), [Renderer](../glossary.md#renderer-process)
-On Linux, there is also a `selection` clipboard. To manipulate it you need to pass `selection` to each method:
+Unter Linux gibt es auch eine `selection` Zwischenablage. Zum Bearbeiten müssen Sie `selection` an jede Methode übergeben:
```javascript
const { clipboard } = require('electron')
@@ -15,15 +15,15 @@ console.log(clipboard.readText('selection'))
## Methoden
-The `clipboard` module has the following methods:
+Das `clipboard` Modul besitzt die folgenden Methoden:
-**Note:** Experimental APIs are marked as such and could be removed in future.
+**Notiz:** Experimentelle Schnittstellen sind mit "Experimentell" markiert und könnten in der Zukunft wegfallen.
### `clipboard.readText([type])`
-* `type` String (optional) - Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.
+* `type` String (optional) - Can be `selection` or `clipboard`; default is 'clipboard'. `selection` ist nur unter Linux verfügbar.
-Returns `String` - The content in the clipboard as plain text.
+Gibt einen `String` zurück - Der Inhalt der Zwischenablage liegt in Klartext vor.
```js
const { clipboard } = require('electron')
@@ -38,9 +38,9 @@ console.log(text)
### `clipboard.writeText(text[, type])`
* `text` String
-* `type` String (optional) - Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.
+* `type` String (optional) - Can be `selection` or `clipboard`; default is 'clipboard'. `selection` ist nur unter Linux verfügbar.
-Writes the `text` into the clipboard as plain text.
+Schreibt den `text` als Klartext in die Zwischenablage.
```js
const { clipboard } = require('electron')
@@ -51,9 +51,9 @@ clipboard.writeText(text)
### `clipboard.readHTML([type])`
-* `type` String (optional) - Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.
+* `type` String (optional) - Can be `selection` or `clipboard`; default is 'clipboard'. `selection` ist nur unter Linux verfügbar.
-Returns `String` - The content in the clipboard as markup.
+Gibt einen `String` zurück - Der Inhalt der Zwischenablage liegt in Auszeichnungssprache (markup language) vor.
```js
const { clipboard } = require('electron')
@@ -68,9 +68,9 @@ console.log(html)
### `clipboard.writeHTML(markup[, type])`
* `markup` String
-* `type` String (optional) - Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.
+* `type` String (optional) - Can be `selection` or `clipboard`; default is 'clipboard'. `selection` ist nur unter Linux verfügbar.
-Writes `markup` to the clipboard.
+Schreibt `markup` in die Zwischenablage.
```js
const { clipboard } = require('electron')
@@ -80,22 +80,22 @@ clipboard.writeHTML('Hi Zeichenfolge
Returns an Object containing title` and `url` keys representing the bookmark in the clipboard. The `title` and `url` values will be empty strings when the bookmark is unavailable.
type` String (optional) - Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.
+* `url` String
+* `type` String (optional) - Can be `selection` or `clipboard`; default is 'clipboard'. `selection` ist nur unter Linux verfügbar.
-Writes the `title` and `url` into the clipboard as a bookmark.
+Schreibt den `title` und die `url` als Lesezeichen in die Zwischenablage.
-**Note:** Most apps on Windows don't support pasting bookmarks into them so you can use `clipboard.write` to write both a bookmark and fallback text to the clipboard.
+**Hinweis:** Die meisten Apps unter Windows unterstützen das Einfügen von Lesezeichen nicht in sie, sodass Sie `clipboard.write` verwenden können, um sowohl ein Lesezeichen als auch einen Fallbacktext in die Zwischenablage zu schreiben.
```js
const { clipboard } = require('electron')
@@ -164,15 +163,15 @@ Writes the `text` into the find pasteboard (the pasteboard that holds informatio
### `clipboard.clear([type])`
-* `type` String (optional) - Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.
+* `type` String (optional) - Can be `selection` or `clipboard`; default is 'clipboard'. `selection` ist nur unter Linux verfügbar.
-Clears the clipboard content.
+Löscht den Inhalt aus der Zwischenablage.
### `clipboard.availableFormats([type])`
-* `type` String (optional) - Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.
+* `type` String (optional) - Can be `selection` or `clipboard`; default is 'clipboard'. `selection` ist nur unter Linux verfügbar.
-Returns `String[]` - An array of supported formats for the clipboard `type`.
+Gibt ein `String[]` zurück - Ein Array mit allen von der Zwischenablage unterstützten Formattypen `type`.
```js
const { clipboard } = require('electron')
@@ -182,58 +181,60 @@ console.log(formats)
// [ 'text/plain', 'text/html' ]
```
-### `clipboard.has(format[, type])` _Experimental_
+### `clipboard.has(format[, type])` _Experimentell_
* `format` String
-* `type` String (optional) - Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.
+* `type` String (optional) - Can be `selection` or `clipboard`; default is 'clipboard'. `selection` ist nur unter Linux verfügbar.
-Returns `Boolean` - Whether the clipboard supports the specified `format`.
+Gibt einen `Boolean` zurück - Prüft, ob die Zwischenablage das angegebene `format` unterstützt.
```js
const { clipboard } = require('electron')
const hasFormat = clipboard.has('selection
')
console.log(hasFormat)
-// 'true' or 'false
+// 'true' or 'false'
```
-### `clipboard.read(format)` _Experimental_
+### `clipboard.read(format)` _Experimentell_
* `format` String
-Returns `String` - Reads `format` type from the clipboard.
+Gibt den `String` zurück - Liest den `format` Typ von der Zwischenablage.
-### `clipboard.readBuffer(format)` _Experimental_
+`format` should contain valid ASCII characters and have `/` separator. `a/c`, `a/bc` are valid formats while `/abc`, `abc/`, `a/`, `/a`, `a` are not valid.
+
+### `clipboard.readBuffer(format)` _Experimentell_
* `format` String
-Returns `Buffer` - Reads `format` type from the clipboard.
+Gibt den `Buffer` zurück - Liest den `format` Typ von der Zwischenablage.
```js
const { clipboard } = require('electron')
const buffer = Buffer.from('this is binary', 'utf8')
-clipboard.writeBuffer('public.utf8-plain-text', buffer)
+clipboard.writeBuffer('public/utf8-plain-text', buffer)
-const ret = clipboard.readBuffer('public.utf8-plain-text')
+const ret = clipboard.readBuffer('public/utf8-plain-text')
console.log(buffer.equals(out))
// true
```
-### `clipboard.writeBuffer(format, buffer[, type])` _Experimental_
+### `clipboard.writeBuffer(format, buffer[, type])` _Experimentell_
* `format` String
-* `buffer` Buffer
-* `type` String (optional) - Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.
+* `buffer` Puffer
+* `type` String (optional) - Can be `selection` or `clipboard`; default is 'clipboard'. `selection` ist nur unter Linux verfügbar.
-Writes the `buffer` into the clipboard as `format`.
+Schreibt den `buffer` mit dem angegebenen `format` in die Zwischenablage.
```js
const { clipboard } = require('electron')
const buffer = Buffer.from('writeBuffer', 'utf8')
-clipboard.writeBuffer('public.utf8-plain-text', buffer)
+clipboard.writeBuffer('public/utf8-plain-text', buffer)
```
### `clipboard.write(data[, type])`
@@ -244,9 +245,9 @@ clipboard.writeBuffer('public.utf8-plain-text', buffer)
* `image` [NativeImage](native-image.md) (optional)
* `rtf` String (optional)
* `bookmark` String (optional) - The title of the URL at `text`.
-* `type` String (optional) - Can be `selection` or `clipboard`; default is 'clipboard'. `selection` is only available on Linux.
+* `type` String (optional) - Can be `selection` or `clipboard`; default is 'clipboard'. `selection` ist nur unter Linux verfügbar.
-Writes `data` to the clipboard.
+Schreibt `data` in die Zwischenablage.
```js
const { clipboard } = require('electron')
diff --git a/content/de-DE/docs/api/command-line-switches.md b/content/de-DE/docs/api/command-line-switches.md
index c684722494423..656793fc73fec 100644
--- a/content/de-DE/docs/api/command-line-switches.md
+++ b/content/de-DE/docs/api/command-line-switches.md
@@ -59,17 +59,18 @@ Forces the maximum disk space to be used by the disk cache, in bytes.
Enables caller stack logging for the following APIs (filtering events):
* `desktopCapturer.getSources()` / `desktop-capturer-get-sources`
-* `remote.require()` / `remote-require`
-* `remote.getGlobal()` / `remote-get-builtin`
-* `remote.getBuiltin()` / `remote-get-global`
-* `remote.getCurrentWindow()` / `remote-get-current-window`
-* `remote.getCurrentWebContents()` / `remote-get-current-web-contents`
-### --enable-logging
+### --enable-logging[=file]
-Prints Chromium's logging into console.
+Prints Chromium's logging to stderr (or a log file).
-This switch can not be used in `app.commandLine.appendSwitch` since it is parsed earlier than user's app is loaded, but you can set the `ELECTRON_ENABLE_LOGGING` environment variable to achieve the same effect.
+The `ELECTRON_ENABLE_LOGGING` environment variable has the same effect as passing `--enable-logging`.
+
+Passing `--enable-logging` will result in logs being printed on stderr. Passing `--enable-logging=file` will result in logs being saved to the file specified by `--log-file=...`, or to `electron_debug.log` in the user-data directory if `--log-file` is not specified.
+
+> **Note:** On Windows, logs from child processes cannot be sent to stderr. Logging to a file is the most reliable way to collect logs on Windows.
+
+See also `--log-file`, `--log-level`, `--v`, and `--vmodule`.
### --force-fieldtrials=`trials`
@@ -116,10 +117,26 @@ See the [Node.js documentation][node-cli] or run `node --help` in your terminal
Set a custom locale.
+### --log-file=`path`
+
+If `--enable-logging` is specified, logs will be written to the given path. The parent directory must exist.
+
+Setting the `ELECTRON_LOG_FILE` environment variable is equivalent to passing this flag. If both are present, the command-line switch takes precedence.
+
### --log-net-log=`path`
Enables net log events to be saved and writes them to `path`.
+### --log-level=`N`
+
+Sets the verbosity of logging when used together with `--enable-logging`. `N` should be one of [Chrome's LogSeverities][severities].
+
+Note that two complimentary logging mechanisms in Chromium -- `LOG()` and `VLOG()` -- are controlled by different switches. `--log-level` controls `LOG()` messages, while `--v` and `--vmodule` control `VLOG()` messages. So you may want to use a combination of these three switches depending on the granularity you want and what logging calls are made by the code you're trying to watch.
+
+See [Chromium Logging source][logging] for more information on how `LOG()` and `VLOG()` interact. Loosely speaking, `VLOG()` can be thought of as sub-levels / per-module levels inside `LOG(INFO)` to control the firehose of `LOG(INFO)` data.
+
+See also `--enable-logging`, `--log-level`, `--v`, and `--vmodule`.
+
### --no-proxy-server
Don't use a proxy server and always make direct connections. Overrides any other proxy server flags that are passed.
@@ -159,6 +176,8 @@ Gives the default maximal active V-logging level; 0 is the default. Normally pos
This switch only works when `--enable-logging` is also passed.
+See also `--enable-logging`, `--log-level`, and `--vmodule`.
+
### --vmodule=`pattern`
Gives the per-module maximal V-logging levels to override the value given by `--v`. z.B. `my_module=2,foo*=3` would change the logging level for all code in source files `my_module.*` and `foo*.*`.
@@ -167,6 +186,8 @@ Any pattern containing a forward or backward slash will be tested against the wh
This switch only works when `--enable-logging` is also passed.
+See also `--enable-logging`, `--log-level`, and `--v`.
+
### --force_high_performance_gpu
Force using discrete GPU when there are multiple GPUs available.
@@ -214,5 +235,7 @@ By default inspector websocket url is available in stderr and under /json/list e
[ready]: app.md#event-ready
[play-silent-audio]: https://github.com/atom/atom/pull/9485/files
[debugging-main-process]: ../tutorial/debugging-main-process.md
+[logging]: https://source.chromium.org/chromium/chromium/src/+/master:base/logging.h
[node-cli]: https://nodejs.org/api/cli.html
[node-cli]: https://nodejs.org/api/cli.html
+[severities]: https://source.chromium.org/chromium/chromium/src/+/master:base/logging.h?q=logging::LogSeverity&ss=chromium
diff --git a/content/de-DE/docs/api/dialog.md b/content/de-DE/docs/api/dialog.md
index 415a2a34692c2..075a19433f182 100644
--- a/content/de-DE/docs/api/dialog.md
+++ b/content/de-DE/docs/api/dialog.md
@@ -186,8 +186,6 @@ The `filters` specifies an array of file types that can be displayed, see `dialo
* `defaultId` Integer (optional) - Index of the button in the buttons array which will be selected by default when the message box opens.
* `title` String (optional) - Title of the message box, some platforms will not show it.
* `detail` String (optional) - Extra information of the message.
- * `checkboxLabel` String (optional) - If provided, the message box will include a checkbox with the given label.
- * `checkboxChecked` Boolean (optional) - Initial checked state of the checkbox. Automatisch `false`.
* `icon` ([NativeImage](native-image.md) | String) (optional)
* `cancelId` Integer (optional) - The index of the button to be used to cancel the dialog, via the `Esc` key. By default this is assigned to the first button with "cancel" or "no" as the label. If no such labeled buttons exist and this option is not set, `0` will be used as the return value.
* `noLink` Boolean (optional) - On Windows Electron will try to figure out which one of the `buttons` are common buttons (like "Cancel" or "Yes"), and show the others as command links in the dialog. This can make the dialog appear in the style of modern Windows apps. If you don't like this behavior, you can set `noLink` to `true`.
diff --git a/content/de-DE/docs/api/environment-variables.md b/content/de-DE/docs/api/environment-variables.md
index f2a013f98851f..77aa055308ca2 100644
--- a/content/de-DE/docs/api/environment-variables.md
+++ b/content/de-DE/docs/api/environment-variables.md
@@ -104,7 +104,15 @@ The following environment variables are intended primarily for development and d
### `ELECTRON_ENABLE_LOGGING`
-Prints Chrome's internal logging to the console.
+Prints Chromium's internal logging to the console.
+
+Setting this variable is the same as passing `--enable-logging` on the command line. For more info, see `--enable-logging` in [command-line switches](./command-line-switches.md#enable-loggingfile).
+
+### `ELECTRON_LOG_FILE`
+
+Sets the file destination for Chromium's internal logging.
+
+Setting this variable is the same as passing `--log-file` on the command line. For more info, see `--log-file` in [command-line switches](./command-line-switches.md#log-filepath).
### `ELECTRON_DEBUG_DRAG_REGIONS`
@@ -112,7 +120,7 @@ Adds coloration to draggable regions on [`BrowserView`](./browser-view.md)s on m
### `ELECTRON_DEBUG_NOTIFICATIONS`
-Adds extra logs to [`Notification`](./notification.md) lifecycles on macOS to aid in debugging. Extra logging will be displayed when new Notifications are created or activated. They will also be displayed when common actions are taken: a notification is shown, dismissed, its button is clicked, or it is replied to.
+Adds extra logs to [`Notification`](./notification.md) lifecycles on macOS to aid in debugging. Extra logging will be displayed when new Notifications are created or activated. They will also be displayed when common a tions are taken: a notification is shown, dismissed, its button is clicked, or it is replied to.
Sample output:
diff --git a/content/de-DE/docs/api/extensions.md b/content/de-DE/docs/api/extensions.md
index 5cec82018d9f2..e2ababb0bdb6f 100644
--- a/content/de-DE/docs/api/extensions.md
+++ b/content/de-DE/docs/api/extensions.md
@@ -64,6 +64,7 @@ The following methods of `chrome.runtime` are supported:
- `chrome.runtime.getURL`
- `chrome.runtime.connect`
- `chrome.runtime.sendMessage`
+- `chrome.runtime.reload`
The following events of `chrome.runtime` are supported:
diff --git a/content/de-DE/docs/api/frameless-window.md b/content/de-DE/docs/api/frameless-window.md
index 747688828d10f..ca79b7bfc8971 100644
--- a/content/de-DE/docs/api/frameless-window.md
+++ b/content/de-DE/docs/api/frameless-window.md
@@ -14,13 +14,13 @@ const win = new BrowserWindow({ width: 800, height: 600, frame: false })
win.show()
```
-### Alternativen auf macOS
+### Alternatives
-Es gibt eine Alternative, um ein rahmenloses Fenster zu erhalten. Statt `frame` auf `false` zu setzen, welches sowohl die Titelleiste als auch die Schaltflächen entfernt, möchtest Du möglicherweise nur die Titelleiste entfernen, aber die Standard-Schaltflächen ("Amplelichter") behalten. Das kannst du erreichen indem du folgende `titleBarStyle`-Optionen verwendest:
+There's an alternative way to specify a chromeless window on macOS and Windows. Instead of setting `frame` to `false` which disables both the titlebar and window controls, you may want to have the title bar hidden and your content extend to the full window size, yet still preserve the window controls ("traffic lights" on macOS) for standard window actions. Das kannst du erreichen indem du folgende `titleBarStyle`-Optionen verwendest:
#### `hidden`
-Resultiert in eine versteckte Titelleiste und ein Inhaltsfenster der vollen Größe. Dennoch sind die Standard-Fensterkontrollen (Ampel) weiterhin vorhanden.
+Results in a hidden title bar and a full size content window. On macOS, the title bar still has the standard window controls (“traffic lights”) in the top left.
```javascript
const { BrowserWindow } = require('electron')
@@ -28,6 +28,8 @@ const win = new BrowserWindow({ titleBarStyle: 'hidden' })
win.show()
```
+### Alternativen auf macOS
+
#### `hiddenInset`
Results in a hidden title bar with an alternative look where the traffic light buttons are slightly more inset from the window edge.
@@ -48,6 +50,33 @@ const win = new BrowserWindow({ titleBarStyle: 'customButtonsOnHover', frame: fa
win.show()
```
+## Windows Control Overlay
+
+When using a frameless window in conjuction with `win.setWindowButtonVisibility(true)` on macOS, using one of the `titleBarStyle`s as described above so that the traffic lights are visible, or using `titleBarStyle: hidden` on Windows, you can access the Window Controls Overlay [JavaScript APIs][overlay-javascript-apis] and [CSS Environment Variables][overlay-css-env-vars] by setting the `titleBarOverlay` option to true. Specifying `true` will result in an overlay with default system colors.
+
+On Windows, you can also specify the color of the overlay and its symbols by setting `titleBarOverlay` to an object with the options `color` and `symbolColor`. If an option is not specified, the color will default to its system color for the window control buttons:
+
+```javascript
+const { BrowserWindow } = require('electron')
+const win = new BrowserWindow({
+ titleBarStyle: 'hidden',
+ titleBarOverlay: true
+})
+win.show()
+```
+
+```javascript
+const { BrowserWindow } = require('electron')
+const win = new BrowserWindow({
+ titleBarStyle: 'hidden',
+ titleBarOverlay: {
+ color: '#2f3241',
+ symbolColor: '#74b1be'
+ }
+})
+win.show()
+```
+
## Transparent window
By setting the `transparent` option to `true`, you can also make the frameless window transparent:
@@ -142,3 +171,5 @@ In a frameless window the dragging behavior may conflict with selecting text. Fo
On some platforms, the draggable area will be treated as a non-client frame, so when you right click on it a system menu will pop up. To make the context menu behave correctly on all platforms you should never use a custom context menu on draggable areas.
[ignore-mouse-events]: browser-window.md#winsetignoremouseeventsignore-options
+[overlay-javascript-apis]: https://github.com/WICG/window-controls-overlay/blob/main/explainer.md#javascript-apis
+[overlay-css-env-vars]: https://github.com/WICG/window-controls-overlay/blob/main/explainer.md#css-environment-variables
diff --git a/content/de-DE/docs/api/ipc-main.md b/content/de-DE/docs/api/ipc-main.md
index 8fcf40369287c..28621c0b5de95 100644
--- a/content/de-DE/docs/api/ipc-main.md
+++ b/content/de-DE/docs/api/ipc-main.md
@@ -32,6 +32,8 @@ ipcMain.on('synchronous-message', (event, arg) => {
```javascript
// In renderer process (web page).
+// NB. Electron APIs are only accessible from preload, unless contextIsolation is disabled.
+// See https://www.electronjs.org/docs/tutorial/process-model#preload-scripts for more details.
const { ipcRenderer } = require('electron')
console.log(ipcRenderer.sendSync('synchronous-message', 'ping')) // prints "pong"
diff --git a/content/de-DE/docs/api/menu-item.md b/content/de-DE/docs/api/menu-item.md
index 1e90e4dbcd662..67f389a37326c 100644
--- a/content/de-DE/docs/api/menu-item.md
+++ b/content/de-DE/docs/api/menu-item.md
@@ -13,7 +13,7 @@ See [`Menu`](menu.md) for examples.
* `menuItem` MenuItem
* `browserWindow` [BrowserWindow](browser-window.md) | undefined - This will not be defined if no window is open.
* `event` [KeyboardEvent](structures/keyboard-event.md)
- * `role` String (optional) - Can be `undo`, `redo`, `cut`, `copy`, `paste`, `pasteAndMatchStyle`, `delete`, `selectAll`, `reload`, `forceReload`, `toggleDevTools`, `resetZoom`, `zoomIn`, `zoomOut`, `togglefullscreen`, `window`, `minimize`, `close`, `help`, `about`, `services`, `hide`, `hideOthers`, `unhide`, `quit`, `startSpeaking`, `stopSpeaking`, `zoom`, `front`, `appMenu`, `fileMenu`, `editMenu`, `viewMenu`, `shareMenu`, `recentDocuments`, `toggleTabBar`, `selectNextTab`, `selectPreviousTab`, `mergeAllWindows`, `clearRecentDocuments`, `moveTabToNewWindow` or `windowMenu` - Define the action of the menu item, when specified the `click` property will be ignored. See [roles](#roles).
+ * `role` String (optional) - Can be `undo`, `redo`, `cut`, `copy`, `paste`, `pasteAndMatchStyle`, `delete`, `selectAll`, `reload`, `forceReload`, `toggleDevTools`, `resetZoom`, `zoomIn`, `zoomOut`, `toggleSpellChecker`, `togglefullscreen`, `window`, `minimize`, `close`, `help`, `about`, `services`, `hide`, `hideOthers`, `unhide`, `quit`, `startSpeaking`, `stopSpeaking`, `zoom`, `front`, `appMenu`, `fileMenu`, `editMenu`, `viewMenu`, `shareMenu`, `recentDocuments`, `toggleTabBar`, `selectNextTab`, `selectPreviousTab`, `mergeAllWindows`, `clearRecentDocuments`, `moveTabToNewWindow` or `windowMenu` - Define the action of the menu item, when specified the `click` property will be ignored. See [roles](#roles).
* `type` String (optional) - Can be `normal`, `separator`, `submenu`, `checkbox` or `radio`.
* `label` String (optional)
* `sublabel` String (optional)
@@ -128,7 +128,7 @@ A `String` indicating the type of the item. Can be `normal`, `separator`, `subme
#### `menuItem.role`
-A `String` (optional) indicating the item's role, if set. Can be `undo`, `redo`, `cut`, `copy`, `paste`, `pasteAndMatchStyle`, `delete`, `selectAll`, `reload`, `forceReload`, `toggleDevTools`, `resetZoom`, `zoomIn`, `zoomOut`, `togglefullscreen`, `window`, `minimize`, `close`, `help`, `about`, `services`, `hide`, `hideOthers`, `unhide`, `quit`, `startSpeaking`, `stopSpeaking`, `zoom`, `front`, `appMenu`, `fileMenu`, `editMenu`, `viewMenu`, `recentDocuments`, `toggleTabBar`, `selectNextTab`, `selectPreviousTab`, `mergeAllWindows`, `clearRecentDocuments`, `moveTabToNewWindow` or `windowMenu`
+A `String` (optional) indicating the item's role, if set. Can be `undo`, `redo`, `cut`, `copy`, `paste`, `pasteAndMatchStyle`, `delete`, `selectAll`, `reload`, `forceReload`, `toggleDevTools`, `resetZoom`, `zoomIn`, `zoomOut`, `toggleSpellChecker`, `togglefullscreen`, `window`, `minimize`, `close`, `help`, `about`, `services`, `hide`, `hideOthers`, `unhide`, `quit`, `startSpeaking`, `stopSpeaking`, `zoom`, `front`, `appMenu`, `fileMenu`, `editMenu`, `viewMenu`, `shareMenu`, `recentDocuments`, `toggleTabBar`, `selectNextTab`, `selectPreviousTab`, `mergeAllWindows`, `clearRecentDocuments`, `moveTabToNewWindow` or `windowMenu`
#### `menuItem.accelerator`
diff --git a/content/de-DE/docs/api/menu.md b/content/de-DE/docs/api/menu.md
index 410cbcd7cf149..15de0240c0187 100644
--- a/content/de-DE/docs/api/menu.md
+++ b/content/de-DE/docs/api/menu.md
@@ -143,7 +143,7 @@ const template = [
{ role: 'services' },
{ type: 'separator' },
{ role: 'hide' },
- { role: 'hideothers' },
+ { role: 'hideOthers' },
{ role: 'unhide' },
{ type: 'separator' },
{ role: 'quit' }
diff --git a/content/de-DE/docs/api/power-monitor.md b/content/de-DE/docs/api/power-monitor.md
index 4ad2a3ec896f2..7dc4228278273 100644
--- a/content/de-DE/docs/api/power-monitor.md
+++ b/content/de-DE/docs/api/power-monitor.md
@@ -8,11 +8,11 @@ Prozess: [Haupt](../glossary.md#main-process)
Das `powerMonitor` Modul sendet folgende Ereignisse aus:
-### Event: 'suspend' _macOS_ _Windows_
+### Event: 'suspend'
Emitted when the system is suspending.
-### Event: 'resume' _macOS_ _Windows_
+### Event: 'resume'
Emitted when system is resuming.
diff --git a/content/de-DE/docs/api/session.md b/content/de-DE/docs/api/session.md
index 40b6d0aa5ca99..fc4e7230d7a8e 100644
--- a/content/de-DE/docs/api/session.md
+++ b/content/de-DE/docs/api/session.md
@@ -160,7 +160,7 @@ Kehrt zurück:
Emitted when a hunspell dictionary file download fails. For details on the failure you should collect a netlog and inspect the download request.
-#### Event: 'select-serial-port' _Experimental_
+#### Event: 'select-serial-port'
Kehrt zurück:
@@ -172,21 +172,15 @@ Kehrt zurück:
Emitted when a serial port needs to be selected when a call to `navigator.serial.requestPort` is made. `callback` should be called with `portId` to be selected, passing an empty string to `callback` will cancel the request. Additionally, permissioning on `navigator.serial` can be managed by using [ses.setPermissionCheckHandler(handler)](#sessetpermissioncheckhandlerhandler) with the `serial` permission.
-Because this is an experimental feature it is disabled by default. To enable this feature, you will need to use the `--enable-features=ElectronSerialChooser` command line switch. Additionally because this is an experimental Chromium feature you will need to set `enableBlinkFeatures: 'Serial'` on the `webPreferences` property when opening a BrowserWindow.
-
```javascript
const { app, BrowserWindow } = require('electron')
let win = null
-app.commandLine.appendSwitch('enable-features', 'ElectronSerialChooser')
app.whenReady().then(() => {
win = new BrowserWindow({
width: 800,
- height: 600,
- webPreferences: {
- enableBlinkFeatures: 'Serial'
- }
+ height: 600
})
win.webContents.session.on('select-serial-port', (event, portList, webContents, callback) => {
event.preventDefault()
@@ -202,7 +196,7 @@ app.whenReady().then(() => {
})
```
-#### Event: 'serial-port-added' _Experimental_
+#### Event: 'serial-port-added'
Kehrt zurück:
@@ -212,7 +206,7 @@ Kehrt zurück:
Emitted after `navigator.serial.requestPort` has been called and `select-serial-port` has fired if a new serial port becomes available. For example, this event will fire when a new USB device is plugged in.
-#### Event: 'serial-port-removed' _Experimental_
+#### Event: 'serial-port-removed'
Kehrt zurück:
@@ -452,7 +446,7 @@ session.fromPartition('some-partition').setPermissionRequestHandler((webContents
#### `ses.setPermissionCheckHandler(handler)`
* `handler` Funktion\ | null
- * `webContents` ([WebContents](web-contents.md) | null) - WebContents checking the permission. Please note that if the request comes from a subframe you should use `requestingUrl` to check the request origin. Cross origin sub frames making permission checks will pass a `null` webContents to this handler. You should use `embeddingOrigin` and `requestingOrigin` to determine what origin the owning frame and the requesting frame are on respectively.
+ * `webContents` ([WebContents](web-contents.md) | null) - WebContents checking the permission. Please note that if the request comes from a subframe you should use `requestingUrl` to check the request origin. All cross origin sub frames making permission checks will pass a `null` webContents to this handler, while certain other permission checks such as `notifications` checks will always pass `null`. You should use `embeddingOrigin` and `requestingOrigin` to determine what origin the owning frame and the requesting frame are on respectively.
* `permission` String - Type of permission check. Valid values are `midiSysex`, `notifications`, `geolocation`, `media`,`mediaKeySystem`,`midi`, `pointerLock`, `fullscreen`, `openExternal`, or `serial`.
* `requestingOrigin` String - The origin URL of the permission check
* `details` Object - Some properties are only available on certain permission types.
@@ -534,10 +528,9 @@ Returns `Promise` - resolves with blob data.
#### `ses.downloadURL(url)`
-* ` URL 0> Zeichenfolge
Initiates a download of the resource at url`. The API will generate a [DownloadItem](download-item.md) that can be accessed with the [will-download](#event-will-download) event.
frameName` String
+* `url` String
+* `frameName` String
* `disposition` String - Can be `default`, `foreground-tab`, `background-tab`, `new-window`, `save-to-disk` and `other`.
* `options` BrowserWindowConstructorOptions - The options which will be used for creating the new [`BrowserWindow`](browser-window.md).
-* `additionalFeatures` String[] - The non-standard features (features not handled by Chromium or Electron) given to `window.open()`.
+* `additionalFeatures` String[] - The non-standard features (features not handled by Chromium or Electron) given to `window.open()`. Deprecated, and will now always be the empty array `[]`.
* `referrer` [Referrer](structures/referrer.md) - The referrer that will be passed to the new window. May or may not result in the `Referer` header being sent, depending on the referrer policy.
* `postBody` [PostBody](structures/post-body.md) (optional) - The post data that will be sent to the new window, along with the appropriate headers that will be set. If no post data is to be sent, the value will be `null`. Only defined when the window is being created by a form that set `target=_blank`.
@@ -178,8 +196,7 @@ Kehrt zurück:
* `details` Objekt
* `url` String - URL for the created window.
* `frameName` String - Name given to the created window in the `window.open()` call.
- * `options` BrowserWindowConstructorOptions - The options used to create the BrowserWindow. They are merged in increasing precedence: options inherited from the parent, parsed options from the `features` string from `window.open()`, and options given by [`webContents.setWindowOpenHandler`](web-contents.md#contentssetwindowopenhandlerhandler). Unrecognized options are not filtered out.
- * `additionalFeatures` String[] - The non-standard features (features not handled Chromium or Electron) _Deprecated_
+ * `options` BrowserWindowConstructorOptions - The options used to create the BrowserWindow. They are merged in increasing precedence: parsed options from the `features` string from `window.open()`, security-related webPreferences inherited from the parent, and options given by [`webContents.setWindowOpenHandler`](web-contents.md#contentssetwindowopenhandlerhandler). Unrecognized options are not filtered out.
* `referrer` [Referrer](structures/referrer.md) - The referrer that will be passed to the new window. May or may not result in the `Referer` header being sent, depending on the referrer policy.
* `postBody` [PostBody](structures/post-body.md) (optional) - The post data that will be sent to the new window, along with the appropriate headers that will be set. If no post data is to be sent, the value will be `null`. Only defined when the window is being created by a form that set `target=_blank`.
* `disposition` String - Can be `default`, `foreground-tab`, `background-tab`, `new-window`, `save-to-disk` and `other`.
@@ -193,11 +210,9 @@ See [`window.open()`](window-open.md) for more details and how to use this in co
Kehrt zurück:
* `event` Event
-* ` URL 0> Zeichenfolge
Emitted when a user or the page wants to start navigation. It can happen when
-the window.location` object is changed or a user clicks a link in the page.
isInPlace` Boolean
+* `url` String
+* `isInPlace` Boolean
* `isMainFrame` Boolean
* `frameProcessId` Integer
* `frameRoutingId` Integer
@@ -223,8 +238,8 @@ Emitted when any frame (including main) starts navigating. `isInPlace` will be `
Kehrt zurück:
* `event` Event
-* ` URL 0> Zeichenfolge
isInPlace` Boolean
+* `url` String
+* `isInPlace` Boolean
* `isMainFrame` Boolean
* `frameProcessId` Integer
* `frameRoutingId` Integer
@@ -240,8 +255,8 @@ Calling `event.preventDefault()` will prevent the navigation (not just the redir
Kehrt zurück:
* `event` Event
-* ` URL 0> Zeichenfolge
isInPlace` Boolean
+* `url` String
+* `isInPlace` Boolean
* `isMainFrame` Boolean
* `frameProcessId` Integer
* `frameRoutingId` Integer
@@ -255,8 +270,8 @@ This event cannot be prevented, if you want to prevent redirects you should chec
Kehrt zurück:
* `event` Event
-* ` URL 0> Zeichenfolge
httpResponseCode` Integer - -1 for non HTTP navigations
+* `url` String
+* `httpResponseCode` Integer - -1 for non HTTP navigations
* `httpStatusText` String - empty for non HTTP navigations
Emitted when a main frame navigation is done.
@@ -268,8 +283,8 @@ This event is not emitted for in-page navigations, such as clicking anchor links
Kehrt zurück:
* `event` Event
-* ` URL 0> Zeichenfolge
httpResponseCode` Integer - -1 for non HTTP navigations
+* `url` String
+* `httpResponseCode` Integer - -1 for non HTTP navigations
* `httpStatusText` String - empty for non HTTP navigations,
* `isMainFrame` Boolean
* `frameProcessId` Integer
@@ -284,8 +299,8 @@ This event is not emitted for in-page navigations, such as clicking anchor links
Kehrt zurück:
* `event` Event
-* ` URL 0> Zeichenfolge
isMainFrame` Boolean
+* `url` String
+* `isMainFrame` Boolean
* `frameProcessId` Integer
* `frameRoutingId` Integer
@@ -322,6 +337,8 @@ win.webContents.on('will-prevent-unload', (event) => {
})
```
+**Note:** This will be emitted for `BrowserViews` but will _not_ be respected - this is because we have chosen not to tie the `BrowserView` lifecycle to its owning BrowserWindow should one exist per the [specification](https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event).
+
#### Event: 'crashed' _Deprecated_
Kehrt zurück:
@@ -439,8 +456,8 @@ Emitted when DevTools is focused / opened.
Kehrt zurück:
* `event` Event
-* ` URL 0> Zeichenfolge
error` String - Der error code.
+* `url` String
+* `error` String - Der error code.
* `certificate` [Certificate](structures/certificate.md)
* `callback` Function
* `isTrusted` Boolean - Indicates whether the certificate can be considered trusted.
@@ -524,17 +541,15 @@ Emitted when a page's theme color changes. This is usually due to encountering a
Kehrt zurück:
* `event` Event
-* ` URL 0> Zeichenfolge
Emitted when mouse moves over a link or the keyboard moves the focus to a link.
+Emitted when mouse moves over a link or the keyboard moves the focus to a link. -Kehrt zurück:
+Kehrt zurück: -event` Event
+* `event` Event
* `type` String
* `image` [NativeImage](native-image.md) (optional)
* `scale` Float (optional) - scaling factor for the custom cursor.
@@ -698,10 +713,9 @@ Kehrt zurück:
* `event` Event
* `preloadPath` String
-* ` Fehler 0> Fehler
Emitted when the preload script preloadPath` throws an unhandled exception `error`.
options` Object (optional)
+* `url` String
+* `options` Object (optional)
* `httpReferrer` (String | [Referrer](structures/referrer.md)) (optional) - An HTTP Referrer url.
* `userAgent` String (optional) - A user agent originating the request.
* `extraHeaders` String (optional) - Extra headers separated by "\n".
@@ -815,7 +786,7 @@ webContents.loadURL('https://github.com', options)
* `search` String (optional) - Passed to `url.format()`.
* `hash` String (optional) - Passed to `url.format()`.
-Returns `Promise` - the promise will resolve when the page has finished loading (see [`did-finish-load`](web-contents.md#event-did-finish-load)), and rejects if the page fails to load (see [`did-fail-load`](web-contents.md#event-did-fail-load)).
+Gibt `Promise` zurück - das Versprechen wird aufgelöst, wenn die Seite das Laden beendet hat (siehe [`did-finish-load`](web-contents.md#event-did-finish-load)), und lehnt ab, wenn die Seite nicht geladen wird (siehe [`did-fail-load`](web-contents.md#event-did-fail-load)).
Loads the given file in the window, `filePath` should be a path to an HTML file relative to the root of your application. For instance an app structure like this:
@@ -835,10 +806,9 @@ win.loadFile('src/index.html')
#### `contents.downloadURL(url)`
-* ` URL 0> Zeichenfolge
Initiates a download of the resource at url` without navigating. The `will-download` event of `session` will be triggered.