ligo-snippet
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -34,2 +34,3 @@ "use strict"; | ||
this.currentFlavour = flavour; | ||
this.editorParams.editor.language = flavour; | ||
// updates code | ||
@@ -51,2 +52,7 @@ this.editorInputElement.value = this.currentCode; | ||
} | ||
else { | ||
// sets the new flavour | ||
this.currentFlavour = flavour; | ||
this.editorParams.editor.language = flavour; | ||
} | ||
[...document.getElementsByClassName("flavour-button")].forEach(button => { | ||
@@ -177,2 +183,3 @@ button.classList.remove("selected"); | ||
const entrypoint = "main", syntax = this.editorParams.editor.language, code = this.editorParams.editor.code; | ||
console.log(syntax); | ||
const response = yield fetch("https://ide-staging.ligolang.org/api/compile-contract", { | ||
@@ -179,0 +186,0 @@ method: "post", |
{ | ||
"name": "ligo-snippet", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Ligo code snippet", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
259978
7002