Update index.js
This commit is contained in:
parent
811fd706de
commit
f82164bff2
1 changed files with 2 additions and 2 deletions
|
@ -649,7 +649,7 @@ window.onload = () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
document.querySelector('.clear').addEventListener('click', () => {
|
document.querySelector('.clear').addEventListener('click', () => {
|
||||||
json = { embed: {}, content: "" };
|
json = { };
|
||||||
embed.style.removeProperty('border-color');
|
embed.style.removeProperty('border-color');
|
||||||
picker.source.style.removeProperty('background');
|
picker.source.style.removeProperty('background');
|
||||||
update(json); buildGui(json); editor.setValue(JSON.stringify(json, null, 4));
|
update(json); buildGui(json); editor.setValue(JSON.stringify(json, null, 4));
|
||||||
|
@ -660,4 +660,4 @@ window.onload = () => {
|
||||||
let colrs = document.querySelector('.colrs');
|
let colrs = document.querySelector('.colrs');
|
||||||
document.querySelector('.pickerToggle').addEventListener('click', () => colrs.classList.toggle('display'));
|
document.querySelector('.pickerToggle').addEventListener('click', () => colrs.classList.toggle('display'));
|
||||||
update(json);
|
update(json);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue