Skip to content

Commit

Permalink
fix(zoom): Only set zoom to valid numeric values
Browse files Browse the repository at this point in the history
  • Loading branch information
bengotow committed Jan 8, 2016
1 parent e642e02 commit 4ae4d13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/flux/stores/workspace-store.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 4ae4d13

Please sign in to comment.