WebExtension: Use \u001f as separator.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1c2828369d
commit
5e9937c9a0
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "remwharead",
|
"name": "remwharead",
|
||||||
"version": "0.4.1",
|
"version": "0.5.0",
|
||||||
|
|
||||||
"description": "Integrates remwharead into your Browser.",
|
"description": "Integrates remwharead into your Browser.",
|
||||||
"homepage_url": "https://schlomp.space/tastytea/remwharead",
|
"homepage_url": "https://schlomp.space/tastytea/remwharead",
|
||||||
|
|
|
@ -7,12 +7,13 @@ const chkarchive = document.getElementById("chkarchive");
|
||||||
const btnadd = document.getElementById("btnadd");
|
const btnadd = document.getElementById("btnadd");
|
||||||
const msgstatus = document.getElementById("msgstatus");
|
const msgstatus = document.getElementById("msgstatus");
|
||||||
const msgerror = document.getElementById("msgerror");
|
const msgerror = document.getElementById("msgerror");
|
||||||
|
const separator = '\u001f';
|
||||||
|
|
||||||
|
|
||||||
function set_taburl(tabs) // Set taburl to URL of current tab.
|
function set_taburl(tabs) // Set taburl to URL of current tab.
|
||||||
{
|
{
|
||||||
const tab = tabs[0];
|
const tab = tabs[0];
|
||||||
taburl = '\'' + tab.url + '\'';
|
taburl = separator + tab.url + separator;
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_tags() // get tags from text input.
|
function get_tags() // get tags from text input.
|
||||||
|
@ -20,7 +21,7 @@ function get_tags() // get tags from text input.
|
||||||
const tags = txttags.value;
|
const tags = txttags.value;
|
||||||
if (tags != "")
|
if (tags != "")
|
||||||
{
|
{
|
||||||
return "-t '" + tags + "' ";
|
return separator + "-t " + tags;
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
@ -72,7 +73,7 @@ function add()
|
||||||
let archive = "";
|
let archive = "";
|
||||||
if (chkarchive.checked === false)
|
if (chkarchive.checked === false)
|
||||||
{
|
{
|
||||||
archive = "--no-archive ";
|
archive = separator + "--no-archive";
|
||||||
}
|
}
|
||||||
const args = get_tags() + archive + taburl;
|
const args = get_tags() + archive + taburl;
|
||||||
console.log(args);
|
console.log(args);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user