Adds ready method and fixes spelling
All checks were successful
On-Site VTT - Develop / build (push) Successful in 2m44s

This commit is contained in:
Alexander
2023-12-11 13:11:30 +01:00
parent 69970fc5b6
commit fa3c98d2b7

View File

@@ -1,5 +1,5 @@
function inti() {
function init() {
if (game.modules.get("on-site-vtt")?.active) {
console.log("on-site-vtt | Enabled");
@@ -23,6 +23,9 @@ function inti() {
}
}
function ready() {
console.log("on-site-vtt | Ready");
}
function rotateView() {
if (document.getElementsByTagName("body")[0].className.includes("nsvRotate")) {
@@ -34,4 +37,5 @@ function rotateView() {
}
}
Hooks.on("init", init);
Hooks.on("init", init);
Hooks.on("ready", ready);