From 6283233d51b5396105dc56d43128e5e07e2a1a48 Mon Sep 17 00:00:00 2001 From: Uriel Gomez Date: Fri, 9 Aug 2024 15:08:49 -0600 Subject: [PATCH] * xover.site.setter - rendedrer added to react to site changes --- xo.js | 1 + 1 file changed, 1 insertion(+) diff --git a/xo.js b/xo.js index 9e7aa46..9576931 100644 --- a/xo.js +++ b/xo.js @@ -2044,6 +2044,7 @@ xover.site = new Proxy(Object.assign({}, history.state), { history.state[key] = new_value; if (['active', 'seed'].includes(key)) { let current_hash = location.hash; + xover.site.sections.map(el => [el, el.stylesheet]).filter(([el, stylesheet]) => stylesheet && stylesheet.selectSingleNode(`//xsl:stylesheet/xsl:param[starts-with(@name,'site:${key}')]`)).forEach(([el]) => el.render()); let hash = [xover.manifest.getSettings(self['active'], 'hash').pop(), self['active'], location.hash, ''].coalesce(); history.replaceState(Object.assign({}, history.state), {}, location.pathname + location.search + hash); if (current_hash != location.hash) {