Skip to content

Commit

Permalink
Fix crash when replacing spellchecked word (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamstein committed Apr 26, 2021
1 parent 88406e2 commit 152bf19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ const create = (win, options) => {
visible: Boolean(props.isEditable && hasText && props.misspelledWord),
click(menuItem) {
const target = webContents(win);
target.insertText(menuItem.label);
target.replaceMisspelling(menuItem.label);
}
};
}
Expand Down

0 comments on commit 152bf19

Please sign in to comment.