wrong count of restoring tabs if the BarTab is installed. (fix for https://github.com/piroor/treestyletab/issues#issue/40 )
This commit is contained in:
parent
f9d9b414f1
commit
8bd60b4ef8
@ -1793,7 +1793,11 @@ var TreeStyleTabService = {
|
|||||||
var owner = aTab.linkedBrowser;
|
var owner = aTab.linkedBrowser;
|
||||||
var data = owner.__SS_data || // Firefox 3.6-
|
var data = owner.__SS_data || // Firefox 3.6-
|
||||||
owner.parentNode.__SS_data; // -Firefox 3.5
|
owner.parentNode.__SS_data; // -Firefox 3.5
|
||||||
return data && data._tabStillLoading;
|
return (
|
||||||
|
data &&
|
||||||
|
data._tabStillLoading &&
|
||||||
|
!aTab.hasAttribute('ontap') // if BarTab is installed, to-be-restored tab possibly has the value unexpectedly.
|
||||||
|
);
|
||||||
}).length;
|
}).length;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user