Skip to content

Commit

Permalink
fix: use correct template when switching journal entry to image mode
Browse files Browse the repository at this point in the history
Fixes #71
  • Loading branch information
eXaminator committed Aug 8, 2021
1 parent 0c23d56 commit 30c275c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/KankaJournal/KankaJournalApplication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ export default function registerSheet(kanka: KankaFoundry): void {
get template(): string {
if (!this.isKankaEntry) return super.template;

return template;
// Only replace the default text template, not the image template
if (super.template === 'templates/journal/sheet.html') return template;

return super.template;
}

async activateListeners(html: JQuery): Promise<void> {
Expand Down

0 comments on commit 30c275c

Please sign in to comment.