script: add unfocus function (built-in client only)
This commit is contained in:
parent
ce5fa36cd6
commit
e99cdaa677
3 changed files with 19 additions and 1 deletions
|
|
@ -79,6 +79,12 @@ module.exports = function(options={}) {
|
|||
})
|
||||
|
||||
|
||||
window.webContents.on('console-message', (event, level, message)=>{
|
||||
|
||||
if (level === 0 && message === 'ELECTRON.BLUR()') window.blur()
|
||||
|
||||
})
|
||||
|
||||
window.webContents.setVisualZoomLevelLimits(1, 1)
|
||||
|
||||
window.on('closed', function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue