Skip to content

Commit

Permalink
Fix ianstormtaylor#655 check environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
XuHaoJun committed May 31, 2017
1 parent b4883ea commit 0070307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function Plugin(options = {}) {
const { anchorNode, anchorOffset, focusNode, focusOffset } = native
const anchorPoint = getPoint(anchorNode, anchorOffset, state, editor)
const focusPoint = getPoint(focusNode, focusOffset, state, editor)
if (anchorPoint && focusPoint) {
if (anchorPoint && focusPoint && IS_SAFARI) {
const { selection } = state
if (
selection.anchorKey !== anchorPoint.key ||
Expand Down

0 comments on commit 0070307

Please sign in to comment.