Added status message to WebExtension.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
c102066d3a
commit
f2cfd3e5ef
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue