Skip to content

Token Variant Art throwing error when custom journals are rendered #225

Description

@flyingsquad

This is under Foundry v 13.351, with SWADE 5.2.4, token variant art 6.1.2 and 6.1.3.

It looks like the code below in artSelectButtonHook.js is throwing an error when a journal is rendered with a journal using a custom journal class. This is the error:

Error: Error thrown in hooked function 'k' for hook 'renderJournalSheet'. t.querySelector is not a function

This appears to be the code causing the problem.

function _modJournalSheet(journalSheet, html, options) {
html.querySelector('.header-button.entry-image')?.addEventListener('contextmenu', () => {
const journal = journalSheet.document;

Looks like this is old code that got screwed up when they made all those changes that invalidated the use of querySelector.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions