From 2a72453051f7d06c3066f12575983757e5f65506 Mon Sep 17 00:00:00 2001 From: Uriel Gomez Date: Thu, 8 Aug 2024 13:39:20 -0600 Subject: [PATCH] * xover.Manifest.prototype.init - Is now logged as error * xover.site.stylesheets - changed "this" by xover.site --- xo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xo.js b/xo.js index eb92bf7..9e7aa46 100644 --- a/xo.js +++ b/xo.js @@ -1584,7 +1584,7 @@ Object.defineProperty(xover.Manifest.prototype, 'init', { for (let link of [...document.querySelectorAll('link[rel="xover-manifest"]')]) { let url = xover.URL(link.getAttribute("href")); try { - let manifest = await xover.fetch.json(url, { headers: { Accept: "*/*" } }).catch(e => console.log(e)); + let manifest = await xover.fetch.json(url, { headers: { Accept: "*/*" } }).catch(e => console.error(e)); xover.manifest.merge(manifest) } catch (e) { Promise.reject(e); @@ -2273,7 +2273,7 @@ Object.defineProperty(xover.site, 'stylesheets', { Object.defineProperty(stylesheets, 'reload', { value: function () { - this.forEach(stylesheet => stylesheet.source.clear()); + xover.site.stylesheets.forEach(stylesheet => stylesheet.source.clear()); xover.site.sections.render() }, writable: false, enumerable: false, configurable: false