v10 compatibility

This commit is contained in:
2022-07-17 20:53:25 +02:00
parent e52b62a314
commit 1f0506f5c2
4 changed files with 86 additions and 76 deletions

View File

@@ -60,7 +60,7 @@ export class SoSGMDeck extends Dialog {
let cardPath = `systems/foundryvtt-shadows-over-sol/img/cards/${card.cardName}.webp`;
let cardData = { card: card, cardPath: cardPath };
let html = await renderTemplate('systems/foundryvtt-shadows-over-sol/templates/chat-card.html', cardData );
ChatMessage.create( { content: html, whisper: [ ChatMessage.getWhisperRecipients("GM") ] });
ChatMessage.create( { content: html, whisper: ChatMessage.getWhisperRecipients("GM") } );
//dialog.onFlipClose();
}