reset error message on start

master
Sascha Nitsch 2022-03-22 06:55:55 +01:00
parent 2f15ae8681
commit 0d516f0da3
2 changed files with 2 additions and 0 deletions

View File

@ -322,6 +322,7 @@ class ProfileGenerator {
event.preventDefault(); event.preventDefault();
var input = this.json.value; var input = this.json.value;
var json = {}; var json = {};
this.error.innerHTML = "";
try { try {
json = JSON.parse(input); json = JSON.parse(input);
} catch (e) { } catch (e) {

View File

@ -498,6 +498,7 @@ var ProfileGenerator = (function () {
event.preventDefault(); event.preventDefault();
var input = this.json.value; var input = this.json.value;
var json = {}; var json = {};
this.error.innerHTML = "";
try { try {
json = JSON.parse(input); json = JSON.parse(input);
} }