diff --git a/src/popup.js b/src/popup.js index a2f05d7..2f38d4e 100644 --- a/src/popup.js +++ b/src/popup.js @@ -109,14 +109,8 @@ function updateNextEvent(nextEvents) { * @param {object} spaceApi */ function updateSpaceApiJson(spaceApi) { - const json = JSON.stringify(spaceApi, null, 2) - .replace(/ /g, ' ') - .replace(/\n/g, '
'); const spaceApiElement = document.querySelector('#space-api > code'); - spaceApiElement.innerHTML = json; - // const jsonNode = document.createTextNode(json); - // spaceApiElement.innerText = ''; - // spaceApiElement.append(jsonNode); + spaceApiElement.textContent = JSON.stringify(spaceApi, null, 2); } /**