update dependencies

This commit is contained in:
Johannes Loher 2021-07-12 01:07:15 +02:00
parent 5d49619921
commit 8268cd48a6
3 changed files with 13 additions and 13 deletions

View file

@ -13,7 +13,7 @@ import { getCanvas, getGame } from "../helpers";
export function getActiveActor(): DS4Actor | undefined {
const speaker = ChatMessage.getSpeaker();
const speakerToken = speaker.token ? getCanvas().tokens.get(speaker.token) : undefined;
const speakerToken = speaker.token ? getCanvas().tokens?.get(speaker.token) : undefined;
if (speakerToken) {
return speakerToken.actor ?? undefined;
}