fixing stuff

This commit is contained in:
iamBadgers
2025-08-03 21:19:54 -07:00
parent 31b90f3338
commit 902cc4f2e8
3 changed files with 11 additions and 7 deletions

View File

@@ -76,11 +76,13 @@ Hooks.on("getActorSheetHeaderButtons", (app: any, buttons: any) => {
// Add to the character context menu.
Hooks.on("getActorDirectoryEntryContext", async (html: any, options: any) => {
console.log(html)
const getActorData = (target: any) => {
console.log(target)
return game.actors.get(target.data("documentId"));
return (game as Game).actors!.get(target.data("documentId"));
};
console.log(getActorData)
@@ -91,10 +93,11 @@ Hooks.on("getActorDirectoryEntryContext", async (html: any, options: any) => {
{
name: "Archive",
icon: '<i class="fas fa-save"></i>',
callback: (target) => {
callback: (target: any) => {
console.log(target)
new CharacterArchiver().render(true);
},
},
);
});