mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-16 15:05:46 +01:00
Minor refactoring of last commit.
This commit is contained in:
@@ -669,13 +669,8 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
let body = XML();
|
||||
for (let [, context] in Iterator(plugins.contexts))
|
||||
try {
|
||||
let info;
|
||||
if (isinstance(context, ["Sandbox"]))
|
||||
info = "INFO" in context && XML(dactyl.userEval("this.INFO instanceof XML && this.INFO.toXMLString()", context));
|
||||
else if (context && context.INFO instanceof XML)
|
||||
info = context.INFO;
|
||||
|
||||
if (info) {
|
||||
let info = contexts.getDocs(context);
|
||||
if (info instanceof XML) {
|
||||
if (info.*.@lang.length()) {
|
||||
let lang = config.bestLocale(String(a) for each (a in info.*.@lang));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user