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:
parent
74abc40dc4
commit
0708328647
@ -203,9 +203,9 @@ module.exports = {
|
||||
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")) {
|
||||
|
Loading…
Reference in New Issue
Block a user