diff --git a/src/components/editors/ContextMenuUI.tsx b/src/components/editors/ContextMenuUI.tsx index 2baa0a7a..bbff7d0b 100644 --- a/src/components/editors/ContextMenuUI.tsx +++ b/src/components/editors/ContextMenuUI.tsx @@ -134,7 +134,9 @@ export default class ContextMenuUI extends React.PureComponent {
{ e.preventDefault(); - const clipboardEmpty = !Boolean(await navigator.clipboard.readText()); + let clipboardEmpty = true; + if (navigator.clipboard.readText) + clipboardEmpty = !Boolean(await navigator.clipboard.readText()); const selection = this.props.editor.state.selected; let enableAddPres = false; diff --git a/src/version.ts b/src/version.ts index 831ce7cd..56bf9ed4 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export default "0.3.3.1694731814331"; +export default "0.3.4.1695076976602";