mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-10-08 20:09:17 +02:00
fix twitter embed throwing error
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user