fix(chat): actually insert spaces

This commit is contained in:
Daniel Kempkens 2023-08-21 17:29:46 +02:00
parent 14dceccfec
commit a74a0185f4
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -29,7 +29,6 @@
<script>
const bookmarks = document.querySelectorAll('[data-bookmark]');
const header = document.getElementsByTagName('h2')[0];
const space = document.createTextNode(' ');
let container = document.createElement('p');
for (var i = 0; i < bookmarks.length; i++) {
@ -40,7 +39,7 @@
bookmarkElement.setAttribute('role', 'button');
container.appendChild(bookmarkElement);
container.appendChild(space);
container.appendChild(document.createTextNode(' '));
}
header.after(container);