mirror of
https://github.com/Kornstalx/5etools-mirror-2.github.io.git
synced 2025-10-28 20:45:35 -05:00
v1.198.1
This commit is contained in:
19
js/blocklist.js
Normal file
19
js/blocklist.js
Normal file
@@ -0,0 +1,19 @@
|
||||
"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();
|
||||
});
|
||||
Reference in New Issue
Block a user