mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-14 03:45:45 +01:00
Remove compatiblity cruft.
This commit is contained in:
@@ -480,14 +480,8 @@ var Contexts = Module("contexts", {
|
||||
|
||||
getDocs: function getDocs(context) {
|
||||
try {
|
||||
if (isinstance(context, ["Sandbox"])) {
|
||||
let info = "INFO" in context && Cu.evalInSandbox("this.INFO instanceof XML ? INFO.toXMLString() : this.INFO", context);
|
||||
return /^</.test(info) ? XML(info) : info;
|
||||
}
|
||||
if (DOM.isJSONXML(context.INFO))
|
||||
return context.INFO;
|
||||
if (typeof context.INFO == "xml" && config.haveGecko(null, "14.*"))
|
||||
return context.INFO;
|
||||
}
|
||||
catch (e) {}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user