Skip to content

Commit

Permalink
FIX SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
tangly1024 committed Nov 18, 2023
1 parent 7f8bf75 commit 27589ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Twikoo.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Twikoo = ({ isDarkMode }) => {
const lang = siteConfig('LANG')
useEffect(() => {
const twikoo = window?.twikoo
if (typeof twikoo !== 'undefined' && twikoo) {
if (typeof twikoo !== 'undefined' && twikoo && typeof twikoo.init === 'function') {
twikoo.init({
envId: envId, // 腾讯云环境填 envId;Vercel 环境填地址(https://xxx.vercel.app)
el: el, // 容器元素
Expand Down

0 comments on commit 27589ab

Please sign in to comment.