mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
🐛 Fix: giscus default theme maybe set error
This commit is contained in:
+1
-8
@@ -962,14 +962,7 @@ class FixIt {
|
||||
if ($script){
|
||||
$script.parentElement.removeChild($script);
|
||||
}
|
||||
const frame = document.querySelector('.giscus-frame');
|
||||
if (frame.getAttribute('loading') === 'lazy') {
|
||||
frame.addEventListener('load', (e) => {
|
||||
this._giscusOnSwitchTheme();
|
||||
}, { once: true });
|
||||
} else {
|
||||
this._giscusOnSwitchTheme();
|
||||
}
|
||||
this._giscusOnSwitchTheme()
|
||||
window.removeEventListener('message', this._messageListener, false);
|
||||
};
|
||||
window.addEventListener('message', this._messageListener, false);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{{- .Scratch.Set "version" "v0.3.17-469af95f" -}}
|
||||
{{- .Scratch.Set "version" "v0.3.17-30a67c4b" -}}
|
||||
{{- .Scratch.Set "this" dict -}}
|
||||
|
||||
{{- partial "init/detection-env.html" . -}}
|
||||
|
||||
Reference in New Issue
Block a user