new (#14)
* Update story-summary.js * Update settings.html * Update index.js * Create ena-planner * Delete modules/ena-planner * Add files via upload * Update manifest.json * Rename ena-planner.js.js to ena-planner.js * Rename ena-planner.css.css to ena-planner.css * Update ena-planner.js * Create sync-upstream.yml * Update ena-planner.js * Update ena-planner.js * Update ena-planner.css * Update ena-planner.js * Update ena-planner.js * Update ena-planner.js * Update ena-planner.js * Update ena-planner.js * Update ena-planner.js * Update manifest.json * Delete .github/workflows/sync-upstream.yml --------- Co-authored-by: Hao19911125 <hao19911125@users.noreply.github.com> Co-authored-by: GH Action - Upstream Sync <action@github.com> Co-authored-by: RT15548 <168917470+RT15548@users.noreply.github.com>
This commit is contained in:
2
index.js
2
index.js
@@ -27,6 +27,7 @@ import { initNovelDraw, cleanupNovelDraw } from "./modules/novel-draw/novel-draw
|
||||
import "./modules/story-summary/story-summary.js";
|
||||
import "./modules/story-outline/story-outline.js";
|
||||
import { initTts, cleanupTts } from "./modules/tts/tts.js";
|
||||
import { initEnaPlanner } from "./modules/ena-planner/ena-planner.js";
|
||||
|
||||
extension_settings[EXT_ID] = extension_settings[EXT_ID] || {
|
||||
enabled: true,
|
||||
@@ -653,6 +654,7 @@ jQuery(async () => {
|
||||
{ condition: true, init: initButtonCollapse }
|
||||
];
|
||||
moduleInits.forEach(({ condition, init }) => { if (condition) init(); });
|
||||
try { initEnaPlanner(); } catch (e) { console.error('[EnaPlanner] Init failed:', e); }
|
||||
|
||||
if (settings.preview?.enabled || settings.recorded?.enabled) {
|
||||
setTimeout(initMessagePreview, 1500);
|
||||
|
||||
Reference in New Issue
Block a user