修复页面加载 /null 这一不存在的资源的问题

This commit is contained in:
HenryZeng 2024-01-10 23:20:42 +08:00
parent 7095ce790f
commit 875f67d71c
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ document.addEventListener('DOMContentLoaded', function () {
} }
if (typeof $.fancybox === 'undefined') { if (typeof $.fancybox === 'undefined') {
$('head').append(`<link rel="stylesheet" type="text/css" href="${GLOBAL_CONFIG.source.fancybox.css}">`) // $('head').append(`<link rel="stylesheet" type="text/css" href="${GLOBAL_CONFIG.source.fancybox.css}">`)
$.getScript(`${GLOBAL_CONFIG.source.fancybox.js}`, function () { $.getScript(`${GLOBAL_CONFIG.source.fancybox.js}`, function () {
runFancybox($(ele)) runFancybox($(ele))
}) })

View File

@ -74,7 +74,7 @@ var btf = {
} }
if (typeof $.fancybox === 'undefined') { if (typeof $.fancybox === 'undefined') {
$('head').append(`<link rel="stylesheet" type="text/css" href="${GLOBAL_CONFIG.source.fancybox.css}">`) // $('head').append(`<link rel="stylesheet" type="text/css" href="${GLOBAL_CONFIG.source.fancybox.css}">`)
$.getScript(`${GLOBAL_CONFIG.source.fancybox.js}`, function () { $.getScript(`${GLOBAL_CONFIG.source.fancybox.js}`, function () {
runFancybox($(ele)) runFancybox($(ele))
}) })