Skip to content

Commit

Permalink
fix: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
17Amir17 committed Aug 26, 2024
1 parent 7dccd24 commit 98e4c1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/RichText/RichText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const RichText = ({ editor, ...props }: RichTextProps) => {

const onWebviewMessage = (event: WebViewMessageEvent) => {
const { data } = event.nativeEvent;
// on expo-web we sometimes get react-dev messages that come in as objects - so we ignore these
if (typeof data !== 'string') return;
// Parse the message sent from the editor
const { type, payload } = JSON.parse(data) as EditorMessage;
Expand Down

0 comments on commit 98e4c1f

Please sign in to comment.