Skip to content

Commit

Permalink
Fixed: Tree Style Tab compatiblity workaround.
Browse files Browse the repository at this point in the history
  • Loading branch information
InternalError503 committed Dec 12, 2016
1 parent 49d50c9 commit 38e0a21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CTR@8pecxstudios.com/content/overlay.js
Expand Up @@ -7197,7 +7197,7 @@ window.addEventListener("DOMWindowCreated", function load(event){
window.removeEventListener("DOMWindowCreated", load, false);

AddonManager.getAddonByID('treestyletab@piro.sakura.ne.jp', function(addon) {
if(addon && addon.isActive) {
if(addon && addon.isActive && !treeStyleCompatMode) {
Services.prefs.setBoolPref("extensions.classicthemerestorer.compatibility.treestyle", true);
classicthemerestorerjs.ctr.fixThatTreeStyleBro();
}else{
Expand All @@ -7220,7 +7220,7 @@ window.addEventListener("DOMWindowCreated", function load(event){

fixThatTreeStyleBro: function(){

if (Services.prefs.getBoolPref("extensions.classicthemerestorer.compatibility.treestyle")){
if (Services.prefs.getBoolPref("extensions.classicthemerestorer.compatibility.treestyle") && !treeStyleCompatMode){
var appButtonState = Services.prefs.getCharPref("extensions.classicthemerestorer.appbutton");
var menutoolbarHasAttribute = document.getElementById("toolbar-menubar");
switch (appButtonState){
Expand Down

0 comments on commit 38e0a21

Please sign in to comment.