1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 03:38:00 +01:00

Only apply tab binding if tab numbers are enabled.

This commit is contained in:
Kris Maglione
2009-04-07 15:45:26 -04:00
parent efed0636d1
commit 31ca8391b9
3 changed files with 18 additions and 9 deletions

View File

@@ -76,9 +76,9 @@ Highlights.prototype.CSS = <![CDATA[
StatusLineSecure color: black; background: #a0a0FF /* light-blue */
StatusLineExtended color: black; background: #a0FFa0 /* light-green */
TabClose
TabIcon
TabText
TabClose,.tab-close-button
TabIcon,.tab-icon
TabText,.tab-text
TabNumber font-weight: bold; margin: 0px; padding-right: .3ex;
TabIconNumber {
font-weight: bold;
@@ -332,7 +332,7 @@ function Styles(name, store, serial)
{
let sheets = system ? systemSheets : userSheets;
let names = system ? systemNames : userNames;
if (typeof sheet == "number")
if (typeof sheet === "number")
return sheets[sheet];
return names[sheet]
};