Display error message in popup if launch fails.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2019-05-21 17:39:53 +02:00
parent f2cfd3e5ef
commit 8c424ac635
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,7 @@ function get_tags() // get tags from text input.
function onResponse(response) {
console.log("Received: " + response);
document.getElementById("status").textContent = "";
if (response == "Command successful.")
{
window.close();
@ -33,6 +34,8 @@ function onResponse(response) {
function onError(error) {
console.log(`Error: ${error}`);
document.getElementById("error").textContent = "Could not launch remwharead.";
document.getElementById("status").textContent = "";
}
function launch() // Launch wrapper and send tags + URL to stdin.