fix(chat): actually insert spaces
This commit is contained in:
parent
14dceccfec
commit
a74a0185f4
1 changed files with 1 additions and 2 deletions
|
@ -29,7 +29,6 @@
|
||||||
<script>
|
<script>
|
||||||
const bookmarks = document.querySelectorAll('[data-bookmark]');
|
const bookmarks = document.querySelectorAll('[data-bookmark]');
|
||||||
const header = document.getElementsByTagName('h2')[0];
|
const header = document.getElementsByTagName('h2')[0];
|
||||||
const space = document.createTextNode(' ');
|
|
||||||
let container = document.createElement('p');
|
let container = document.createElement('p');
|
||||||
|
|
||||||
for (var i = 0; i < bookmarks.length; i++) {
|
for (var i = 0; i < bookmarks.length; i++) {
|
||||||
|
@ -40,7 +39,7 @@
|
||||||
bookmarkElement.setAttribute('role', 'button');
|
bookmarkElement.setAttribute('role', 'button');
|
||||||
|
|
||||||
container.appendChild(bookmarkElement);
|
container.appendChild(bookmarkElement);
|
||||||
container.appendChild(space);
|
container.appendChild(document.createTextNode(' '));
|
||||||
}
|
}
|
||||||
|
|
||||||
header.after(container);
|
header.after(container);
|
||||||
|
|
Reference in a new issue