typedjs 升级

This commit is contained in:
tangly1024.com
2024-06-27 12:42:52 +08:00
parent 15959e9762
commit 332a04d3be
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ const Hero = props => {
if (!typed && window && document.getElementById('typed')) {
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'
).then(() => {
if (window.Typed) {

View File

@@ -22,7 +22,7 @@ const Hero = props => {
updateHeaderHeight()
if (!typed && window && document.getElementById('typed')) {
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'
).then(() => {
if (window.Typed) {