Skip to content

Commit

Permalink
Prettier Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mclemente committed Sep 28, 2023
1 parent c49f31e commit ce6f0d4
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions party-overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,13 @@ Hooks.once("init", () => {

Hooks.on("ready", () => {
if (!game.partyOverview) game.partyOverview = new PartyOverviewApp();
if (game.modules.get("stream-view")?.active && game?.user?.id === game.settings.get("stream-view", "user-id"))
game.partyOverview.render(true);
if (game.modules.get("stream-view")?.active && game?.user?.id === game.settings.get("stream-view", "user-id")) game.partyOverview.render(true);
});

Hooks.on("renderActorDirectory", (app, html, data) => {
if (!game.user.isGM && !game.settings.get("party-overview", "EnablePlayerAccess")) return;

let button = $(
`<button class="party-overview-button ${currentSystemProvider.customCSS}"><i class="fas fa-users"></i> Party Overview</button>`
);
let button = $(`<button class="party-overview-button ${currentSystemProvider.customCSS}"><i class="fas fa-users"></i> Party Overview</button>`);
button.on("click", (e) => {
game.partyOverview.render(true);
});
Expand All @@ -79,10 +76,7 @@ Hooks.on("updateToken", (token, data, options, userId) => {
});

Hooks.on("createToken", (token, options, userId) => {
if (
game.partyOverview.rendering &&
game.actors.contents.find((actor) => actor.id === token.actor.id).hasPlayerOwner
) {
if (game.partyOverview.rendering && game.actors.contents.find((actor) => actor.id === token.actor.id).hasPlayerOwner) {
game.partyOverview.render(false);
}
});
Expand Down

0 comments on commit ce6f0d4

Please sign in to comment.