1 Commits

Author SHA1 Message Date
Alexander
fa3c98d2b7 Adds ready method and fixes spelling
All checks were successful
On-Site VTT - Develop / build (push) Successful in 2m44s
2023-12-11 13:11:30 +01:00

View File

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