clean up button creation code

This commit is contained in:
Alexander Bass 2022-09-06 18:22:53 -04:00
parent 0044ee427b
commit ef604302a4

View file

@ -70,16 +70,13 @@
loadContainer.appendChild(loadButton);
const buttonContainer2 = document.createElement("span");
buttonContainer2.style = "display: inline-block; position: relative; font-size: 90%;";
const loadURLButton = document.createElement("div");
buttonContainer.appendChild(saveButton);
buttonContainer2.appendChild(loadContainer);
document.getElementById("dcg-header-container").querySelector(".align-right-container").appendChild(buttonContainer).appendChild(buttonContainer2);
buttonContainer.appendChild(buttonContainer2);
document.getElementById("dcg-header-container").querySelector(".align-right-container").appendChild(buttonContainer);
}
// creates a script in the document to interact with the page variables.
// the IMPORTEXPRESSION div is used as an interface to carry the data from this script to the injected script
function loadExpr(json) {