Fix: init macros before extensions (#4988) * Fix: init macros before extensions * Add an anchor comment for future reference

281c50bb527887c5ddcfcc7731b1650b665cbeb9

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
1 files changed, +4 -1Showing whitespace changes
public/script.js+4 -1
@@ -702,7 +702,6 @@ async function firstLoadInit() {
702702 initDynamicStyles();
703703 initTags();
704704 initBookmarks();
705- initMacros();
706705 await getUserAvatars(true, user_avatar);
707706 await getCharacters();
708707 await getBackgrounds();
@@ -7754,6 +7753,10 @@ export async function getSettings() {
77547753
77557754 selected_button = settings.selected_button;
77567755
7756+ // TODO: Move me into firstLoadInit when experimental toggle is removed
7757+ // power_user.experimental_macro_engine
7758+ initMacros();
7759+
77577760 if (data.enable_extensions) {
77587761 const enableAutoUpdate = Boolean(data.enable_extensions_auto_update);
77597762 const isVersionChanged = settings.currentVersion !== currentVersion;