summaryrefslogtreecommitdiff
path: root/common/content/tabs.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2010-10-04 10:43:56 -0400
committerKris Maglione <maglione.k@gmail.com>2010-10-04 10:43:56 -0400
commit226e411420c221f1c87a3464ce86374a743e1384 (patch)
tree4ef4a1d451335df809f63ef9de80d3af320640e3 /common/content/tabs.js
parent9fdf43d46e84296d88cdb58acf0f41da9d0d34db (diff)
downloadpentadactyl-226e411420c221f1c87a3464ce86374a743e1384.tar.gz
Fix stal=0 on FF36. Closes issue #37.
Diffstat (limited to 'common/content/tabs.js')
-rw-r--r--common/content/tabs.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/content/tabs.js b/common/content/tabs.js
index 7847342b..1df666fa 100644
--- a/common/content/tabs.js
+++ b/common/content/tabs.js
@@ -34,7 +34,9 @@ const Tabs = Module("tabs", {
config.tabStrip.collapsed = true;
this.tabStyle = styles.addSheet(true, "tab-strip-hiding", config.styleableChrome,
- "", false, true)
+ (config.tabStrip.id ? "#" + config.tabStrip.id : ".tabbrowser-strip") +
+ "{ visibility: collapse; }",
+ false, true)
dactyl.commands["tabs.select"] = function (event) {
tabs.select(event.originalTarget.getAttribute("identifier"));
@@ -988,10 +990,8 @@ const Tabs = Module("tabs", {
setter: function (value) {
let tabStrip = config.tabStrip;
- if (value == 0) {
- tabs.tabStyle.css = "#" + tabStrip.id + " { visibility: collapse; }"
+ if (value == 0)
tabs.tabStyle.enabled = true;
- }
else {
options.safeSetPref("browser.tabs.autoHide", value == 1,
"See 'showtabline' option.");