Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Fix for context menu unit test
Browse files Browse the repository at this point in the history
Auditors: @darkdh
  • Loading branch information
bsclifton committed Jul 14, 2017
1 parent 3b5fbd5 commit 166b321
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/contextMenus.js
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,8 @@ function mainTemplateInit (nodeProps, frame, tab) {
getMisspelledSuggestions(nodeProps.selectionText,
true, nodeProps.dictionarySuggestions,
frame.get('tabId'))
} else if (nodeProps.properties.hasOwnProperty('customDictionaryWord') &&
} else if (nodeProps.properties &&
nodeProps.properties.hasOwnProperty('customDictionaryWord') &&
nodeProps.properties['customDictionaryWord'] === nodeProps.selectionText) {
misspelledSuggestions =
getMisspelledSuggestions(nodeProps.selectionText,
Expand Down

0 comments on commit 166b321

Please sign in to comment.