1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-17 19:03:33 +01:00

Re-enable tab numbers of FF36.

This commit is contained in:
Kris Maglione
2010-12-26 20:45:03 -05:00
parent 467d193694
commit 8c64d0ec44
9 changed files with 84 additions and 18 deletions

View File

@@ -1313,9 +1313,12 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
styles.system.add("taboptions", "chrome://*",
classes.length ? classes.join(",") + "{ display: none; }" : "");
},
validator: function (opts) dactyl.has("Gecko2") ||
Option.validIf(!/[nN]/.test(opts), "Tab numbering not available in this " + config.host + " version")
if (!dactyl.has("Gecko2")) {
tabs.tabBinding.enabled = Array.some(opts, function (k) k in this.opts, this);
tabs.updateTabCount();
}
}
}
].filter(function (group) !group.feature || dactyl.has(group.feature));