🐛 Fix: that using music shortcode can cause toc freezing

Resolved #577
This commit is contained in:
Cell
2025-04-08 11:01:44 +08:00
parent 22c3353dde
commit ed14126001
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1071,10 +1071,10 @@ class FixIt {
this.initEcharts();
this.initTypeit();
this.initMapbox();
this.fixTocScroll();
this.initToc();
this.initTocListener();
this.initPangu();
this.fixTocScroll();
this.util.forEach(document.querySelectorAll('.encrypted-hidden'), ($element) => {
$element.classList.replace('encrypted-hidden', 'decrypted-shown');
});
@@ -1310,9 +1310,9 @@ class FixIt {
window.setTimeout(() => {
this.initComment();
if (!this.config.encryption?.all) {
this.fixTocScroll();
this.initToc();
this.initTocListener();
this.fixTocScroll();
}
this.onScroll();
this.onResize();
+1 -1
View File
@@ -1,4 +1,4 @@
{{- .Scratch.Set "version" "v0.3.17-2b936cb6" -}}
{{- .Scratch.Set "version" "v0.3.17-22c3353d" -}}
{{- .Scratch.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}