forked from public/foundryvtt-reve-de-dragon
Extract constants for SYSTEM / SOCKET
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import { SYSTEM_RDD } from "./constants.js";
|
||||
import { Misc } from "./misc.js";
|
||||
|
||||
export class RddCompendiumOrganiser {
|
||||
@ -8,7 +9,7 @@ export class RddCompendiumOrganiser {
|
||||
static async onRenderCompendium(compendium, html, data) {
|
||||
console.log('onRenderCompendium', compendium, html, data);
|
||||
const pack = compendium.collection
|
||||
if (pack.metadata.system === 'foundryvtt-reve-de-dragon') {
|
||||
if (pack.metadata.system === SYSTEM_RDD) {
|
||||
html.find('.directory-item').each((i, element) => {
|
||||
RddCompendiumOrganiser.setEntityTypeName(pack, element);
|
||||
});
|
||||
|
Reference in New Issue
Block a user