feat: update seasonal options in config page and improve descriptions; add version 1.3.4.0 to manifest
This commit is contained in:
@@ -121,6 +121,7 @@ function loadThemeJS(jsPath) {
|
||||
|
||||
const script = document.createElement('script');
|
||||
script.src = jsPath;
|
||||
script.defer = true;
|
||||
|
||||
script.onerror = () => {
|
||||
console.error(`Failed to load JS: ${jsPath}`);
|
||||
@@ -201,9 +202,5 @@ async function initializeTheme() {
|
||||
removeSelf();
|
||||
}
|
||||
|
||||
// Ensure DOM is ready before initializing
|
||||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', initializeTheme);
|
||||
} else {
|
||||
initializeTheme();
|
||||
}
|
||||
|
||||
initializeTheme();
|
||||
|
||||
Reference in New Issue
Block a user