Kevin Sawicki 2016-06-22 14:14:32 -07:00
Π ΠΎΠ΄ΠΈΡ‚Π΅Π»ΡŒ 58c1d38c96
ΠšΠΎΠΌΠΌΠΈΡ‚ ece319a687
1 ΠΈΠ·ΠΌΠ΅Π½Ρ‘Π½Π½Ρ‹Ρ… Ρ„Π°ΠΉΠ»ΠΎΠ²: 14 Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ΠΈΠΉ ΠΈ 14 ΡƒΠ΄Π°Π»Π΅Π½ΠΈΠΉ

ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€Π΅Ρ‚ΡŒ Ρ„Π°ΠΉΠ»

@ -125,21 +125,21 @@ exports.execute = function (role, focusedWindow) {
return true
}
if (focusedWindow != null) {
if (windowMethod) {
if (typeof windowMethod === 'function') {
windowMethod(focusedWindow)
} else {
focusedWindow[windowMethod]()
}
return true
} else if (webContentsMethod) {
const {webContents} = focusedWindow
if (webContents) {
webContents[webContentsMethod]()
}
return true
if (windowMethod && focusedWindow != null) {
if (typeof windowMethod === 'function') {
windowMethod(focusedWindow)
} else {
focusedWindow[windowMethod]()
}
return true
}
if (webContentsMethod && focusedWindow != null) {
const {webContents} = focusedWindow
if (webContents) {
webContents[webContentsMethod]()
}
return true
}
return false