mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 15:52:29 +01:00
More of the same.
This commit is contained in:
@@ -289,10 +289,9 @@ liberator.Options = function () //{{{
|
||||
{
|
||||
if (!args)
|
||||
{
|
||||
var str = "";
|
||||
for (let i in liberator.globalVariables)
|
||||
var str = <></>;
|
||||
for (let [i, value] in Iterator(liberator.globalVariables))
|
||||
{
|
||||
var value = liberator.globalVariables[i];
|
||||
if (typeof value == "number")
|
||||
var prefix = "#";
|
||||
else if (typeof value == "function")
|
||||
@@ -300,10 +299,10 @@ liberator.Options = function () //{{{
|
||||
else
|
||||
var prefix = "";
|
||||
|
||||
str += "<tr><td style=\"width: 200px;\">" + i + "</td><td>" + prefix + value + "</td>\n";
|
||||
str += <tr><td style="width: 200px;">{i}</td><td>{prefix}{value}</td></tr>;
|
||||
}
|
||||
if (str)
|
||||
liberator.echo("<table>" + str + "</table>", liberator.commandline.FORCE_MULTILINE);
|
||||
if (str.length())
|
||||
liberator.echo(<table>{str}</table>, liberator.commandline.FORCE_MULTILINE);
|
||||
else
|
||||
liberator.echo("No variables found");
|
||||
return;
|
||||
|
||||
@@ -71,17 +71,17 @@ liberator.util = { //{{{
|
||||
|
||||
var str = arg.toString();
|
||||
if (typeof str == "string") // can be "undefined"
|
||||
return liberator.util.escapeHTML(str);
|
||||
return <>{str}</>;
|
||||
else
|
||||
return "undefined";
|
||||
}
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
return "<unknown>";
|
||||
return <><![CDATA[<unknown>]]></>;
|
||||
}
|
||||
|
||||
return "<unknown type>";
|
||||
return <><![CDATA[<unknown type>]]></>;
|
||||
},
|
||||
|
||||
copyToClipboard: function (str, verbose)
|
||||
|
||||
Reference in New Issue
Block a user