From e0e633977ae20e85375414a7713db49c8b13325c Mon Sep 17 00:00:00 2001 From: Glitchii Date: Fri, 15 Jan 2021 23:14:51 +0000 Subject: [PATCH] Update index.js --- assets/js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/index.js b/assets/js/index.js index 91b7fc6..2532ce5 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -645,7 +645,7 @@ window.onload = () => { json = { embed: {}, content: "" }; embed.style.removeProperty('border-color'); picker.source.style.removeProperty('background'); - update(json); buildGui(json); editor.setValue('{}'); + update(json); buildGui(json); editor.setValue(Object.toString(json)); document.querySelectorAll('.gui>.item').forEach(e => e.classList.add('active')); content.focus(); }) @@ -653,4 +653,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 +};