mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 15:22:26 +01:00
I cant sleep.
This commit is contained in:
@@ -269,16 +269,19 @@ liberator.Options = function () //{{{
|
||||
if (!args)
|
||||
{
|
||||
XML.prettyPrinting = false;
|
||||
var str = <></>;
|
||||
var str = <table/>
|
||||
for (let [i, value] in Iterator(liberator.globalVariables))
|
||||
{
|
||||
let prefix = typeof value == "number" ? "#" :
|
||||
typeof value == "function" ? "*" :
|
||||
" ";
|
||||
str += <tr><td style="width: 200px;">{i}</td><td>{prefix}{value}</td></tr>;
|
||||
str.* += <tr>
|
||||
<td style="width: 200px;">{i}</td>
|
||||
<td>{prefix}{value}</td>
|
||||
</tr>;
|
||||
}
|
||||
if (str.length())
|
||||
liberator.echo(<table>{str}</table>, liberator.commandline.FORCE_MULTILINE);
|
||||
if (str.*.length())
|
||||
liberator.echo(str, liberator.commandline.FORCE_MULTILINE);
|
||||
else
|
||||
liberator.echo("No variables found");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user