diff --git a/assets/js/index.js b/assets/js/index.js index ab92a29..e18ed05 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -649,7 +649,7 @@ window.onload = () => { }) document.querySelector('.clear').addEventListener('click', () => { - json = { embed: {}, content: "" }; + json = { }; embed.style.removeProperty('border-color'); picker.source.style.removeProperty('background'); update(json); buildGui(json); editor.setValue(JSON.stringify(json, null, 4)); @@ -660,4 +660,4 @@ window.onload = () => { let colrs = document.querySelector('.colrs'); document.querySelector('.pickerToggle').addEventListener('click', () => colrs.classList.toggle('display')); update(json); -}; \ No newline at end of file +};