Update index.js

This commit is contained in:
Glitchii 2021-01-15 23:14:51 +00:00 committed by GitHub
parent a525ac5e52
commit e0e633977a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
};
};