mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-19 18:42:34 +00:00
Use insertAdjacentHTML instead of innerHTML
This commit is contained in:
parent
a396c61a0a
commit
2ca7577f0a
@ -121,10 +121,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (tense === 'future' && prevEnd < now) {
|
if (tense === 'future' && prevEnd < now) {
|
||||||
eventList.innerHTML += '<hr>';
|
eventList.insertAdjacentHTML('beforeend', '<hr>');
|
||||||
}
|
}
|
||||||
|
|
||||||
eventList.innerHTML += buildEventDOM(tense, event, start, end);
|
eventList.insertAdjacentHTML('beforeend', buildEventDOM(tense, event, start, end));
|
||||||
prevEnd = end;
|
prevEnd = end;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user