.dungeon/module/utils.mjs

13 lines
No EOL
242 B
JavaScript

export function reloadWindows(type = null) {
if (!type) {
for (const window of ui.windows) {
window.render(true);
};
return;
};
for (const window of ui.windows) {
if (window instanceof type) {
window.render(true);
};
};
};