Skip to content

Commit

Permalink
feat: add check for navigator presence
Browse files Browse the repository at this point in the history
  • Loading branch information
drewlyton committed Aug 26, 2024
1 parent 6f6f5b3 commit 24e3fc2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ export const DocumentPaneProvider = memo((props: DocumentPaneProviderProps) => {
return true
}

if (item.action === 'copy-document-url') {
if (item.action === 'copy-document-url' && navigator) {
navigator.clipboard.writeText(window.location.toString())
pushToast({
id: 'copy-document-url',
Expand Down

0 comments on commit 24e3fc2

Please sign in to comment.