fix: 生产环境运行问题。
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Ivan Li 2022-10-08 08:23:13 +00:00
parent 4738a03fb9
commit 85fa2ae57f
3 changed files with 1 additions and 3 deletions

View File

@ -15,7 +15,6 @@ const insertScript = (
script.async = true
script.src = src
script.id = id
console.log(document.getElementById(id))
if (document.getElementById(id)) {
return
}
@ -52,7 +51,6 @@ const ReactCommento = ({
}) => {
const containerId = useMemo(() => `commento-${Math.random().toString().slice(2, 8)}`, [])
const container = createRef<HTMLDivElement>()
const initializing = useRef(false)
useLayoutEffect(() => {
if (!window) {

BIN
package-lock.json generated

Binary file not shown.

View File

@ -14,6 +14,7 @@
"dependencies": {
"@fontsource/inter": "4.5.13",
"@mailchimp/mailchimp_marketing": "^3.0.78",
"@next/bundle-analyzer": "12.3.1",
"@tailwindcss/forms": "^0.5.3",
"@tailwindcss/typography": "^0.5.7",
"autoprefixer": "^10.4.12",
@ -46,7 +47,6 @@
"unist-util-visit": "^4.1.1"
},
"devDependencies": {
"@next/bundle-analyzer": "12.3.1",
"@svgr/webpack": "^6.4.0",
"@types/react": "^18.0.21",
"@types/tailwindcss": "^3.0.11",