From 0e1864c2cda7ce6052f295b9511e188e1fb1c024 Mon Sep 17 00:00:00 2001 From: CorvusPrudens Date: Mon, 18 Sep 2023 16:46:07 -0600 Subject: [PATCH] Added check for readText (for firefox) --- src/components/editors/ContextMenuUI.tsx | 4 +++- src/version.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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";