mirror of
https://github.com/dergigi/boris.git
synced 2026-02-15 12:04:43 +01:00
fix(types): replace ShareData with inline type to fix lint errors
This commit is contained in:
@@ -260,8 +260,8 @@ const ContentPanel: React.FC<ContentPanelProps> = ({
|
||||
|
||||
const handleShareVideoUrl = async () => {
|
||||
try {
|
||||
if (selectedUrl && (navigator as unknown as { share?: (d: ShareData) => Promise<void> }).share) {
|
||||
await (navigator as unknown as { share: (d: ShareData) => Promise<void> }).share({ title: title || 'Video', url: selectedUrl })
|
||||
if (selectedUrl && (navigator as { share?: (d: { title?: string; url?: string }) => Promise<void> }).share) {
|
||||
await (navigator as { share: (d: { title?: string; url?: string }) => Promise<void> }).share({ title: title || 'Video', url: selectedUrl })
|
||||
} else if (selectedUrl) {
|
||||
await navigator.clipboard.writeText(selectedUrl)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user