Working on Compatibility for FVTT v10

SendToChat : Fix compendium-link
This commit is contained in:
Vlyan
2022-07-23 22:04:48 +02:00
parent e7bd9ea3fb
commit 075ce5f662

View File

@@ -87,6 +87,17 @@ export default class HooksL5r5e {
html.find(".gm-only").remove();
}
}
// Compendium folder link
html.find(".compendium-link").on("click", (event) => {
const packId = $(event.currentTarget).data("pack");
if (packId) {
const pack = game.packs.get(packId);
if (pack) {
pack.render(true);
}
}
});
}
/**