hexo-theme-lnote 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,6 @@
1
- ;(() => {
2
- const popoverTriggerList = document.querySelectorAll(
3
- '[data-bs-toggle="popover"]'
4
- )
5
- const popoverList = [...popoverTriggerList].map(
6
- (popoverTriggerEl) => new bootstrap.Popover(popoverTriggerEl)
7
- )
8
- })()
1
+ const popoverTriggerList = document.querySelectorAll(
2
+ '[data-bs-toggle="popover"]'
3
+ )
4
+ const popoverList = [...popoverTriggerList].map(
5
+ (popoverTriggerEl) => new bootstrap.Popover(popoverTriggerEl)
6
+ )
@@ -1,4 +1,4 @@
1
- import PhotoSwipeLightbox from 'https://lib.baomitu.com/photoswipe/5.4.2/photoswipe-lightbox.esm.min.js';
1
+ import PhotoSwipeLightbox from '//lib.baomitu.com/photoswipe/5.4.2/photoswipe-lightbox.esm.min.js';
2
2
 
3
3
  const imgs = document.querySelectorAll('.markdown-body img')
4
4
  const promiseds = Array.prototype.map.call(imgs, (item) => {
@@ -1,13 +1,9 @@
1
- ;(() => {
2
- if (!'mermaid' in window) {
3
- return
4
- }
5
- let theme = document.documentElement.getAttribute('data-bs-theme')
6
- if (theme !== 'dark') {
7
- theme = 'forest'
8
- }
9
- mermaid.initialize({
10
- theme,
11
- })
12
- mermaid.init()
13
- })()
1
+ let theme = document.documentElement.getAttribute('data-bs-theme')
2
+ if (theme !== 'dark') {
3
+ theme = 'forest'
4
+ }
5
+ mermaid.initialize({
6
+ theme,
7
+ startOnLoad: true
8
+ })
9
+ mermaid.init()