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

This commit is contained in:
2022-10-08 08:23:13 +00:00
parent 4738a03fb9
commit 85fa2ae57f
3 changed files with 17 additions and 57 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) {