From ef604302a49ef04c8a11ea9d5a4119e1130f7961 Mon Sep 17 00:00:00 2001 From: Alexander Bass Date: Tue, 6 Sep 2022 18:22:53 -0400 Subject: [PATCH] clean up button creation code --- content_scripts/saveload.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/content_scripts/saveload.js b/content_scripts/saveload.js index 741a39c..0be7322 100644 --- a/content_scripts/saveload.js +++ b/content_scripts/saveload.js @@ -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) {