From 0d516f0da329dd415938a6d8f98ce84cd1577b77 Mon Sep 17 00:00:00 2001 From: Sascha Nitsch Date: Tue, 22 Mar 2022 06:55:55 +0100 Subject: [PATCH] reset error message on start --- profilegenerator/ts/ProfileGenerator.ts | 1 + profilegenerator/webroot/index.html | 1 + 2 files changed, 2 insertions(+) diff --git a/profilegenerator/ts/ProfileGenerator.ts b/profilegenerator/ts/ProfileGenerator.ts index 5430773..ace49f5 100644 --- a/profilegenerator/ts/ProfileGenerator.ts +++ b/profilegenerator/ts/ProfileGenerator.ts @@ -322,6 +322,7 @@ class ProfileGenerator { event.preventDefault(); var input = this.json.value; var json = {}; + this.error.innerHTML = ""; try { json = JSON.parse(input); } catch (e) { diff --git a/profilegenerator/webroot/index.html b/profilegenerator/webroot/index.html index 8476ca6..dc53a37 100644 --- a/profilegenerator/webroot/index.html +++ b/profilegenerator/webroot/index.html @@ -498,6 +498,7 @@ var ProfileGenerator = (function () { event.preventDefault(); var input = this.json.value; var json = {}; + this.error.innerHTML = ""; try { json = JSON.parse(input); }