mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 23:22:26 +01:00
fixed options for muttator composer
This commit is contained in:
@@ -77,8 +77,8 @@ liberator.Option = function (names, description, type, defaultValue, scope, gett
|
|||||||
|
|
||||||
var aValue;
|
var aValue;
|
||||||
|
|
||||||
if (scope & liberator.options.OPTION_SCOPE_LOCAL)
|
if (liberator.has("tabs") && (scope & liberator.options.OPTION_SCOPE_LOCAL))
|
||||||
aValue = liberator.tabs.options[this.name]; // TODO: does that work without has("tabs")?
|
aValue = liberator.tabs.options[this.name];
|
||||||
if ((scope & liberator.options.OPTION_SCOPE_GLOBAL) && (aValue == undefined))
|
if ((scope & liberator.options.OPTION_SCOPE_GLOBAL) && (aValue == undefined))
|
||||||
aValue = value;
|
aValue = value;
|
||||||
|
|
||||||
@@ -98,7 +98,7 @@ liberator.Option = function (names, description, type, defaultValue, scope, gett
|
|||||||
else
|
else
|
||||||
scope = this.scope;
|
scope = this.scope;
|
||||||
|
|
||||||
if (scope & liberator.options.OPTION_SCOPE_LOCAL)
|
if (liberator.has("tabs") && (scope & liberator.options.OPTION_SCOPE_LOCAL))
|
||||||
liberator.tabs.options[this.name] = newValue;
|
liberator.tabs.options[this.name] = newValue;
|
||||||
if (scope & liberator.options.OPTION_SCOPE_GLOBAL)
|
if (scope & liberator.options.OPTION_SCOPE_GLOBAL)
|
||||||
value = newValue;
|
value = newValue;
|
||||||
|
|||||||
Reference in New Issue
Block a user