ligo-snippet
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -26,3 +26,7 @@ "use strict"; | ||
if (container) { | ||
container.classList.add(`${watermark}-container`); | ||
const shadowRoot = document | ||
.createElement("div") | ||
.attachShadow({ mode: "open" }); | ||
const shadowContainer = document.createElement("div"); | ||
shadowContainer.classList.add(`${watermark}-container`); | ||
// sets up the buttons | ||
@@ -44,3 +48,3 @@ const buttons = document.createElement("div"); | ||
buttons.append(buttonsLeft, buttonsRight); | ||
container.appendChild(buttons); | ||
shadowContainer.appendChild(buttons); | ||
// sets up the container | ||
@@ -64,6 +68,8 @@ const editorWrapper = document.createElement("div"); | ||
editorRenderer.appendChild(textarea); | ||
container.appendChild(editorWrapper); | ||
shadowContainer.appendChild(editorWrapper); | ||
const errorsDiv = document.createElement("div"); | ||
errorsDiv.id = `${watermark}-compile-error`; | ||
container.appendChild(errorsDiv); | ||
shadowContainer.appendChild(errorsDiv); | ||
shadowRoot.appendChild(shadowContainer); | ||
container.appendChild(shadowRoot); | ||
} | ||
@@ -70,0 +76,0 @@ else { |
{ | ||
"name": "ligo-snippet", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Ligo code snippet", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
260163
7011