mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-18 05:58:11 +08:00
fix(zoom): Only set zoom to valid numeric values
This commit is contained in:
parent
e642e02a4f
commit
4ae4d130ec
1 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,8 @@ class WorkspaceStore extends NylasStore
|
|||
@trigger()
|
||||
|
||||
NylasEnv.config.observe 'core.workspace.interfaceZoom', (zoom) =>
|
||||
require('electron').webFrame.setZoomFactor(zoom)
|
||||
if zoom and _.isNumber(zoom)
|
||||
require('electron').webFrame.setZoomFactor(zoom)
|
||||
|
||||
NylasEnv.commands.add 'body', @_navigationCommands()
|
||||
|
||||
|
|
Loading…
Reference in a new issue