diff --git a/src/global.d.ts b/src/global.d.ts index caaaa81..7cb068b 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -22,7 +22,7 @@ declare namespace _iro { const NProgressON: boolean const audio: boolean const author_name: string - const baguetteBoxON: boolean + const baguetteBox: boolean const fancybox: boolean const lightGallery: Record | false | undefined const clipboardRef: boolean diff --git a/src/page/artile_attachment/index.ts b/src/page/artile_attachment/index.ts index 481ccbe..0a8484b 100644 --- a/src/page/artile_attachment/index.ts +++ b/src/page/artile_attachment/index.ts @@ -33,7 +33,7 @@ function collapse() { let lightBoxCSS: HTMLLinkElement async function lightbox() { //init lightbox - if (_iro.baguetteBoxON) { + if (_iro.baguetteBox) { if (!lightBoxCSS) lightBoxCSS = loadCSS(resolvePath('dist/baguetteBox.min.css', 'baguettebox.js', '1.11.1')) //@ts-ignore const { default: baguetteBox } = await import('baguettebox.js')