Fix stat import

This commit is contained in:
2024-02-26 09:58:36 +01:00
parent 4ead400c2e
commit 8112dae14d
34 changed files with 109 additions and 104 deletions

View File

@ -1,6 +1,5 @@
/************************************************************************************/
import statParserFR from "./modules/import-stat-2.js";
import { ClassCounter} from "https://www.uberwald.me/fvtt_appcount/count-class-ready.js"
/************************************************************************************/
var compmod = "wfrp4e-core";
@ -589,6 +588,11 @@ Hooks.once('init', () => {
/*---------------------------------------------------------------------*/
Hooks.once('ready', () => {
ClassCounter.registerUsageCount("wh4-fr-translation")
import("https://www.uberwald.me/fvtt_appcount/count-class-ready.js").then(moduleCounter=>{
//console.log("ClassCounter loaded", moduleCounter)
moduleCounter.ClassCounter.registerUsageCount("wh4-fr-translation")
}).catch(err=>
console.log("No stats available, giving up.")
)
});