diff --git a/module/sos-gm-deck.js b/module/sos-gm-deck.js index 323323b..5320885 100644 --- a/module/sos-gm-deck.js +++ b/module/sos-gm-deck.js @@ -29,7 +29,7 @@ export class SoSGMDeck extends Dialog { /* -------------------------------------------- */ onFlipClose() { - this.close(); + this.minimize(); } /* -------------------------------------------- */ diff --git a/module/sos-main.js b/module/sos-main.js index bea3a48..35fd287 100644 --- a/module/sos-main.js +++ b/module/sos-main.js @@ -38,7 +38,6 @@ Hooks.once("init", async function () { // Create useful storage space let html = await renderTemplate('systems/foundryvtt-shadows-over-sol/templates/gm-deck.html', {} ); let gmDeck = new SoSGMDeck(html); - //gmDeck.render(true); game.system.sos = { gmDeck: gmDeck, } @@ -119,7 +118,7 @@ Hooks.on("chatMessage", (html, content, msg) => { let commands = content.toLowerCase().match(regExp); console.log(commands); if ( commands[0] == '/gmdeck') { - game.system.sos.gmDeck.render(true); + game.system.sos.gmDeck.render( true ); return false; } }