We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ca0831 commit 637edb8Copy full SHA for 637edb8
src/features/modals/DownloadModal/index.tsx
@@ -92,7 +92,13 @@ export const DownloadModal = ({ opened, onClose }: ModalProps) => {
92
toast.success("Copied to clipboard");
93
gaEvent("clipboard_img");
94
} catch (error) {
95
- toast.error("Failed to copy to clipboard");
+ if (error instanceof Error && error.name === "NotAllowedError") {
96
+ toast.error(
97
+ "Clipboard write permission denied. Please allow clipboard access in your browser settings."
98
+ );
99
+ } else {
100
+ toast.error("Failed to copy to clipboard");
101
+ }
102
} finally {
103
toast.dismiss("toastClipboard");
104
onClose();
0 commit comments