mirror of
https://github.com/Kornstalx/5etools-mirror-2.github.io.git
synced 2025-10-28 20:45:35 -05:00
20 lines
441 B
JavaScript
20 lines
441 B
JavaScript
"use strict";
|
|
|
|
class Blocklist {
|
|
static async pInit () {
|
|
const data = await BlocklistUtil.pLoadData();
|
|
const ui = new BlocklistUi({$wrpContent: $(`#blocklist-content`), data});
|
|
await ui.pInit();
|
|
window.dispatchEvent(new Event("toolsLoaded"));
|
|
}
|
|
}
|
|
|
|
window.addEventListener("load", async () => {
|
|
await Promise.all([
|
|
PrereleaseUtil.pInit(),
|
|
BrewUtil2.pInit(),
|
|
]);
|
|
await ExcludeUtil.pInitialise();
|
|
await Blocklist.pInit();
|
|
});
|