mirror of
https://github.com/R0m1k3/FlowReader.git
synced 2026-10-21 06:08:06 +02:00
fix(share): resolve typescript errors in ReaderView and ShareButton
This commit is contained in:
1 parent
8279df02d3
commit
02c3c333cf
2 files changed
+2
-3
No files matched your search
@@ -35,7 +35,7 @@ export function ShareButton({ article, className = "" }: ShareButtonProps) {
|
||||
};
|
||||
|
||||
const copyToClipboard = () => {
|
||||
navigator.clipboard.writeText(article.url);
|
||||
navigator.clipboard.writeText(article.url || window.location.href);
|
||||
setCopied(true);
|
||||
setTimeout(() => setCopied(false), 2000);
|
||||
setIsOpen(false);
|
||||
|
||||
Reference in new issue
Block a user