diff options
| author | MohamedBassem <me@mbassem.com> | 2024-09-28 12:11:07 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-09-28 12:11:07 +0000 |
| commit | b32a8325b48fa4139e4fc15d48358a2457c9432a (patch) | |
| tree | 56b92469fad914b7abf7e84a64b7c748aece4183 /apps/web | |
| parent | ab1c8375e3fa2749dfebbd839476cc831b891ab8 (diff) | |
| download | karakeep-b32a8325b48fa4139e4fc15d48358a2457c9432a.tar.zst | |
fix(web): Fix another hydration error in copy to clipboard
Diffstat (limited to 'apps/web')
| -rw-r--r-- | apps/web/components/dashboard/BulkBookmarksAction.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/web/components/dashboard/BulkBookmarksAction.tsx b/apps/web/components/dashboard/BulkBookmarksAction.tsx index e7068b9d..0867fdd2 100644 --- a/apps/web/components/dashboard/BulkBookmarksAction.tsx +++ b/apps/web/components/dashboard/BulkBookmarksAction.tsx @@ -69,6 +69,9 @@ export default function BulkBookmarksAction() { } function isClipboardAvailable() { + if (typeof window === "undefined") { + return false; + } return window && window.navigator && window.navigator.clipboard; } |
