remove appcommand media-play_pause option deprecation
This commit is contained in:
parent
003a5a0160
commit
3deffa859d
2 changed files with 0 additions and 17 deletions
|
@ -14,19 +14,6 @@ let windowA = new BrowserWindow(optionsA)
|
|||
// Replace with
|
||||
let optionsB = {webPreferences: {enableBlinkFeatures: ''}}
|
||||
let windowB = new BrowserWindow(optionsB)
|
||||
|
||||
// Deprecated
|
||||
window.on('app-command', (e, cmd) => {
|
||||
if (cmd === 'media-play_pause') {
|
||||
// do something
|
||||
}
|
||||
})
|
||||
// Replace with
|
||||
window.on('app-command', (e, cmd) => {
|
||||
if (cmd === 'media-play-pause') {
|
||||
// do something
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
## `nativeImage`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue