Update index.js

This commit is contained in:
Glitchii 2021-03-03 11:51:45 +00:00 committed by GitHub
parent 811fd706de
commit f82164bff2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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