From f2cfd3e5efc2e3054fd09257e62353bbbf129e41 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 21 May 2019 17:11:14 +0200 Subject: [PATCH] Added status message to WebExtension. --- browser-plugins/webextension/add_uri.html | 1 + browser-plugins/webextension/launch.js | 2 ++ browser-plugins/webextension/manifest.json | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/browser-plugins/webextension/add_uri.html b/browser-plugins/webextension/add_uri.html index 76a56d5..0f36d65 100644 --- a/browser-plugins/webextension/add_uri.html +++ b/browser-plugins/webextension/add_uri.html @@ -7,6 +7,7 @@ + diff --git a/browser-plugins/webextension/launch.js b/browser-plugins/webextension/launch.js index b807b99..f982f90 100644 --- a/browser-plugins/webextension/launch.js +++ b/browser-plugins/webextension/launch.js @@ -19,6 +19,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(); @@ -36,6 +37,7 @@ function onError(error) { function launch() // Launch wrapper and send tags + URL to stdin. { + document.getElementById("status").textContent = "Launching remwharead…"; var arguments = get_tags() + taburl; console.log("Sending: " + arguments + " to remwharead"); var sending = browser.runtime.sendNativeMessage("remwharead", arguments); diff --git a/browser-plugins/webextension/manifest.json b/browser-plugins/webextension/manifest.json index 7f238fe..c5ba535 100644 --- a/browser-plugins/webextension/manifest.json +++ b/browser-plugins/webextension/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "remwharead", - "version": "0.2.0", + "version": "0.2.1", "description": "Integrates remwharead into your Browser.", "homepage_url": "https://schlomp.space/tastytea/remwharead",