mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-02 04:55:46 +01:00
Remove some redundant version-specific code.
This commit is contained in:
@@ -51,8 +51,6 @@ var ConfigBase = Class("ConfigBase", {
|
||||
this.loadConfig();
|
||||
|
||||
this.features.push = deprecated("Set.add", function push(feature) Set.add(this, feature));
|
||||
if (this.haveGecko("2b"))
|
||||
Set.add(this.features, "Gecko2");
|
||||
|
||||
JSMLoader.registerFactory(JSMLoader.Factory(AboutHandler));
|
||||
JSMLoader.registerFactory(JSMLoader.Factory(
|
||||
@@ -160,17 +158,6 @@ var ConfigBase = Class("ConfigBase", {
|
||||
highlight.loadCSS(this.helpCSS.replace(/__MSG_(.*?)__/g,
|
||||
(m0, m1) => _(m1)));
|
||||
|
||||
if (!this.haveGecko("2b"))
|
||||
highlight.loadCSS(literal(/*
|
||||
!TabNumber font-weight: bold; margin: 0px; padding-right: .8ex;
|
||||
!TabIconNumber {
|
||||
font-weight: bold;
|
||||
color: white;
|
||||
text-align: center;
|
||||
text-shadow: black -1px 0 1px, black 0 1px 1px, black 1px 0 1px, black 0 -1px 1px;
|
||||
}
|
||||
*/));
|
||||
|
||||
let hl = highlight.set("Find", "");
|
||||
hl.onChange = function () {
|
||||
function hex(val) ("#" + util.regexp.iterate(/\d+/g, val)
|
||||
|
||||
Reference in New Issue
Block a user