We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 019b0a3 commit c4380eaCopy full SHA for c4380ea
src/RichTextEditor.js
@@ -325,7 +325,9 @@ export default class RichTextEditor extends Component {
325
_sendAction(action, data) {
326
let jsonString = JSON.stringify({type: action, data});
327
jsonString = this.escapeJSONString(jsonString);
328
- this.webviewBridge.sendToBridge(jsonString);
+ if (this.webviewBridge && this.webviewBridge.sendToBridge) {
329
+ this.webviewBridge.sendToBridge(jsonString);
330
+ }
331
}
332
333
//-------------------------------------------------------------------------------
0 commit comments