Skip to content

Commit

Permalink
Quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanistzed committed Jun 25, 2021
1 parent 8aee154 commit 0a381d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/scs.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Hooks.on("init", () => {
});

Hooks.once('ready', async function () {
if (game.modules.get("smalltime").active) { pinOffset += 67 };
if (game.modules.get("smalltime")?.active) { pinOffset += 67 };

new scsApp().render(true);
});
Expand Down Expand Up @@ -147,7 +147,7 @@ class scsApp extends FormApplication {
};

// Integration with About Time
const aboutTime = game.modules.get("about-time").active;
const aboutTime = game.modules.get("about-time")?.active;
/*if (aboutTime && game.settings.get("scs", "stopRealtime")) {
Hooks.on("createCombatant", () => {
let d = new Dialog({
Expand Down Expand Up @@ -335,7 +335,7 @@ class scsApp extends FormApplication {
};

// Pin the app above the Players list.
static async pinApp(expanded) {
static async pinApp(_expanded) {
// Only do this if a pin lock isn't already in place.
if (!$('#pin-lock').length) {
const playerApp = document.getElementById('players');
Expand Down

0 comments on commit 0a381d8

Please sign in to comment.