Skip to content

Commit 976e7da

Browse files
authored
fix:Move overriding token and token ruler classes to initial load instead of init hook (#760)
1 parent e8f3ae7 commit 976e7da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

module/projectfu.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ globalThis.projectfu = {
133133
},
134134
};
135135

136+
// These are pulled out of the init hook to ensure they are overridden before any modules that may apply mixins later
137+
CONFIG.Token.rulerClass = FUTokenRuler;
138+
CONFIG.Token.objectClass = FUToken;
139+
136140
/* -------------------------------------------- */
137141
/* Init Hook */
138142
/* -------------------------------------------- */
@@ -411,10 +415,6 @@ Hooks.once('init', async () => {
411415
// CONFIG.Token.rulerClass = null;
412416
// }
413417

414-
// Override token ruler class
415-
CONFIG.Token.rulerClass = FUTokenRuler;
416-
CONFIG.Token.objectClass = FUToken;
417-
418418
// Preload Handlebars templates.
419419
return preloadHandlebarsTemplates();
420420
});

0 commit comments

Comments
 (0)