Skip to content

Commit

Permalink
noop: safer code
Browse files Browse the repository at this point in the history
  • Loading branch information
gdh1995 committed Jan 5, 2020
1 parent e99f58f commit e369c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content_scripts/hud.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ HUD =
document.activeElement.blur() if document.activeElement == @hudUI?.iframeElement

giveUpFocus: ->
if @hudUI.showing
if @hudUI?.showing
@hudUI.iframeElement.blur()
window.focus()

Expand Down

0 comments on commit e369c84

Please sign in to comment.