fixing stuff
This commit is contained in:
@@ -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);
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user