mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-03 15:10:19 +00:00
typedjs 升级
This commit is contained in:
@@ -27,7 +27,7 @@ const Hero = props => {
|
|||||||
|
|
||||||
if (!typed && window && document.getElementById('typed')) {
|
if (!typed && window && document.getElementById('typed')) {
|
||||||
loadExternalResource(
|
loadExternalResource(
|
||||||
'https://cdn.jsdelivr.net/npm/typed.js@2.0.12',
|
'https://cdn.bootcdn.net/ajax/libs/typed.js/2.0.12/typed.min.js',
|
||||||
'js'
|
'js'
|
||||||
).then(() => {
|
).then(() => {
|
||||||
if (window.Typed) {
|
if (window.Typed) {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ const Hero = props => {
|
|||||||
updateHeaderHeight()
|
updateHeaderHeight()
|
||||||
if (!typed && window && document.getElementById('typed')) {
|
if (!typed && window && document.getElementById('typed')) {
|
||||||
loadExternalResource(
|
loadExternalResource(
|
||||||
'https://cdn.jsdelivr.net/npm/typed.js@2.0.12',
|
'https://cdn.bootcdn.net/ajax/libs/typed.js/2.0.12/typed.min.js',
|
||||||
'js'
|
'js'
|
||||||
).then(() => {
|
).then(() => {
|
||||||
if (window.Typed) {
|
if (window.Typed) {
|
||||||
|
|||||||
Reference in New Issue
Block a user