Display error message in popup if launch fails.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
f2cfd3e5ef
commit
8c424ac635
|
@ -20,6 +20,7 @@ function get_tags() // get tags from text input.
|
||||||
function onResponse(response) {
|
function onResponse(response) {
|
||||||
console.log("Received: " + response);
|
console.log("Received: " + response);
|
||||||
document.getElementById("status").textContent = "";
|
document.getElementById("status").textContent = "";
|
||||||
|
|
||||||
if (response == "Command successful.")
|
if (response == "Command successful.")
|
||||||
{
|
{
|
||||||
window.close();
|
window.close();
|
||||||
|
@ -33,6 +34,8 @@ function onResponse(response) {
|
||||||
|
|
||||||
function onError(error) {
|
function onError(error) {
|
||||||
console.log(`Error: ${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.
|
function launch() // Launch wrapper and send tags + URL to stdin.
|
||||||
|
|
Loading…
Reference in New Issue