Added status message to WebExtension.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2019-05-21 17:11:14 +02:00
parent c102066d3a
commit f2cfd3e5ef
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
3 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,7 @@
<label for="tags">Tags, comma separated:</label>
<input type="text" id="tags" autofocus>
<input type="button" id="button" value="Add URI">
<em id="status"></em>
<strong id="error"></strong>
<script src="launch.js"></script>

View File

@ -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);

View File

@ -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",