Fix: Hooks.once('ready') not called

Sur Firefor, le onReady n'est jamais appelé, le système n'est alors
pas totalement initialisé, toute la partie calendrier n'est pas prête,
et donc les ajustement d'astrologie.
This commit is contained in:
Vincent Vandemeulebrouck 2023-11-24 01:31:55 +01:00
parent dfd915f8d1
commit bf2b387fc4
1 changed files with 4 additions and 4 deletions

View File

@ -73,9 +73,10 @@ import { RdDTMRDialog } from "./rdd-tmr-dialog.js";
export class SystemReveDeDragon {
static start() {
const system = new SystemReveDeDragon();
Hooks.once('init', async () => await system.onInit());
Hooks.once('diceSoNiceReady', (dice3d) => RdDDice.diceSoNiceReady(dice3d));
const system = new SystemReveDeDragon()
Hooks.once('init', async () => await system.onInit())
Hooks.once('diceSoNiceReady', (dice3d) => RdDDice.diceSoNiceReady(dice3d))
Hooks.once('ready', () => system.onReady())
}
constructor() {
@ -208,7 +209,6 @@ export class SystemReveDeDragon {
TMRRencontres.init();
Environnement.init();
Hooks.once('ready', () => this.onReady());
}
initSystemSettings() {