Move unobserve to unobserve all patterns after a load's ready state is done.

Safe to assume that unless you're still copying the design system to some place that the result won't be any different. Since that is such an edge case a page reload should suffice.
This commit is contained in:
A McIlwraith 2024-07-15 09:27:06 -04:00
parent 74abc40dc4
commit 0708328647

View File

@ -202,10 +202,10 @@ module.exports = {
let ajx = new XMLHttpRequest();
ajx.onreadystatechange = () => {
if (ajx.readyState == 4) {
observer.unobserve(article.target);
switch (ajx.status) {
case 200:
observer.unobserve(article.target);
a.innerHTML = a.innerHTML + ajx.responseText;
switch (a.getAttribute("data-template")) {