mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-06-10 17:00:58 +02:00
fix twitter embed throwing error
This commit is contained in:
parent
bba59ccf88
commit
66b8b6572c
@ -13,7 +13,7 @@ export const TweetEmbed = ({ href, conversation }: TweetEmbedProps) => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (ref.current) {
|
if (ref.current) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
window.twttr.widgets.load();
|
window.twttr?.widgets.load();
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user