assets/js/devtools.js in appscms-tools-theme-3.2.9 vs assets/js/devtools.js in appscms-tools-theme-3.3.0
- old
+ new
@@ -9,17 +9,19 @@
let inputcopyButton = document.querySelector("#inputcopy");
let outputcopyButton = document.querySelector("#outputcopy");
let deleteEditorInputTxt = document.querySelector(".input_editor_bar .cross_icon");
let deleteEditorOuputTxt = document.querySelector(".output_editor_bar .cross_icon");
const siteName = file_upload.dataset.sitename
+let selectedFile
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
upload_div_inner.onclick = function () {
document.querySelector("#file_upload").click();
};
file_upload.onchange = function (e) {
var input = e.target.files[0];
+ selectedFile = input
input_editor = ace.edit("input_editor");
input_editor.session.setMode("ace/mode/json");
var reader = new FileReader();
reader.onload = function () {
input_editor.setValue(reader.result);
\ No newline at end of file