Files
server-configs/siyuan/temp/bazaar/package/01ff2z8/theme.js
2026-02-13 22:24:27 +08:00

20 lines
519 B
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Savor 主题模块化入口文件
document.addEventListener('DOMContentLoaded', () => {
import('./js/main.js').then(module => {
module.initAll();
}).catch(error => {
// 模块加载失败: error
});
});
// 确保在页面加载完成后也尝试初始化
if (document.readyState === 'complete' || document.readyState === 'interactive') {
import('./js/main.js').then(module => {
module.initAll();
}).catch(error => {
// 模块加载失败: error
});
}