Skip to content

Commit

Permalink
Fix template-cache patch in Foundry v10 (#55)
Browse files Browse the repository at this point in the history
* Fix template-cache patch in Foundry v10

* Update module/patches/getTemplate.mjs

Co-authored-by: Andrew Krigline <[email protected]>

* Update module/patches/getTemplate.mjs

Co-authored-by: Andrew Krigline <[email protected]>

Co-authored-by: Andrew Krigline <[email protected]>
  • Loading branch information
ben and akrigline authored Sep 10, 2022
1 parent b1f2fff commit fad1da4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/patches/getTemplate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function setupDisableTemplateCache() {
* is rendered.
* AKA: Poor Man's Hot-Reload
*/
async function _devModeGetTemplate(path) {
async function _devModeGetTemplate(path, ...args) {
// eslint-disable-next-line
if (_templateCache.hasOwnProperty(path)) {
DevMode.log(false, 'Deleting cached template: ', path);
Expand All @@ -21,7 +21,7 @@ export default function setupDisableTemplateCache() {
delete _templateCache[path];
}

return _getTemplate(path);
return _getTemplate(path, ...args);
}

// eslint-disable-next-line
Expand Down

0 comments on commit fad1da4

Please sign in to comment.