update dependencies
This commit is contained in:
parent
5d49619921
commit
8268cd48a6
3 changed files with 13 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue