Correct how I'm using CONFIG.ui to be inline with how Foundry uses it
This commit is contained in:
parent
7db0036aab
commit
d7661bea14
2 changed files with 4 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
|||
// Applications
|
||||
import { AllItemSheetV1 } from "../Apps/ItemSheets/AllItemSheetV1.mjs";
|
||||
import { CombinedHeroSheet } from "../Apps/ActorSheets/CombinedHeroSheet.mjs";
|
||||
import { CryptApp } from "../Apps/CryptApp.mjs";
|
||||
import { HeroSkillsCardV1 } from "../Apps/ActorSheets/HeroSkillsCardV1.mjs";
|
||||
import { HeroSummaryCardV1 } from "../Apps/ActorSheets/HeroSummaryCardV1.mjs";
|
||||
|
||||
|
|
@ -28,6 +29,8 @@ import { registerUserSettings } from "../settings/userSettings.mjs";
|
|||
Hooks.once(`init`, () => {
|
||||
Logger.log(`Initializing`);
|
||||
|
||||
CONFIG.ui.crypt = CryptApp;
|
||||
|
||||
// #region Settings
|
||||
registerMetaSettings();
|
||||
registerDevSettings();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import { CryptApp } from "../Apps/CryptApp.mjs";
|
||||
import { Logger } from "../utils/Logger.mjs";
|
||||
|
||||
Hooks.once(`ready`, () => {
|
||||
|
|
@ -19,6 +18,5 @@ Hooks.once(`ready`, () => {
|
|||
if (game.paused) { game.togglePause() };
|
||||
};
|
||||
|
||||
CONFIG.ui.crypt = new CryptApp();
|
||||
CONFIG.ui.crypt.render({ force: true });
|
||||
ui.crypt.render({ force: true });
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue