mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
test: fix app.dock for corrected type (#46110)
test: fix app.dock for corrected type
This commit is contained in:
@@ -230,11 +230,12 @@ const dockMenu = Menu.buildFromTemplate([
|
||||
]
|
||||
}
|
||||
]);
|
||||
app.dock.setMenu(dockMenu);
|
||||
app.dock.setBadge('foo');
|
||||
const dockid = app.dock.bounce('informational');
|
||||
app.dock.cancelBounce(dockid);
|
||||
app.dock.setIcon('/path/to/icon.png');
|
||||
|
||||
app.dock?.setMenu(dockMenu);
|
||||
app.dock?.setBadge('foo');
|
||||
const dockid = app.dock?.bounce('informational');
|
||||
app.dock?.cancelBounce(dockid);
|
||||
app.dock?.setIcon('/path/to/icon.png');
|
||||
|
||||
app.setBadgeCount(app.getBadgeCount() + 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user