chore: load super note twitter embed script from local copy instead of remote

This commit is contained in:
Aman Harwara
2023-12-12 14:04:05 +05:30
parent 29787e5790
commit 7ce5bdff91
2 changed files with 9 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ import { BlockWithAlignableContents } from '@lexical/react/LexicalBlockWithAlign
import { DecoratorBlockNode, SerializedDecoratorBlockNode } from '@lexical/react/LexicalDecoratorBlockNode'
import { useCallback, useEffect, useRef, useState } from 'react'
const WIDGET_SCRIPT_URL = 'https://platform.twitter.com/widgets.js'
const WIDGET_SCRIPT_URL = '/dist/twitter-widgets.js'
type TweetComponentProps = Readonly<{
className: Readonly<{