Fix for cross-loaded French compendium
This commit is contained in:
@@ -183,8 +183,8 @@ Hooks.once("init", async function () {
|
|||||||
Hooks.once("setup", function () {
|
Hooks.once("setup", function () {
|
||||||
// Do anything after initialization but before ready
|
// Do anything after initialization but before ready
|
||||||
// Babele
|
// Babele
|
||||||
if (typeof Babele !== "undefined") {
|
/* eslint-disable no-undef */
|
||||||
// eslint-disable-next-line no-undef
|
if (typeof Babele !== "undefined" && Babele.get().modules.every((module) => module.lang !== "fr")) {
|
||||||
Babele.get().register({
|
Babele.get().register({
|
||||||
module: "../systems/l5r5e", // babele only accept modules, so... well :D
|
module: "../systems/l5r5e", // babele only accept modules, so... well :D
|
||||||
lang: "fr",
|
lang: "fr",
|
||||||
|
|||||||
Reference in New Issue
Block a user