mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
docs: use optional chaining for app.dock (#46140)
docs: use optional chaining for app.dock Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Niklas Wenzel <dev@nikwen.de>
This commit is contained in:
@@ -9,7 +9,7 @@ The following example shows how to bounce your icon on the dock.
|
||||
|
||||
```js
|
||||
const { app } = require('electron')
|
||||
app.dock.bounce()
|
||||
app.dock?.bounce()
|
||||
```
|
||||
|
||||
### Instance Methods
|
||||
|
||||
Reference in New Issue
Block a user