Update codes for latest TMP
This commit is contained in:
parent
05267c0d3f
commit
2e6de05f80
@ -152,12 +152,11 @@ TreeStyleTabWindowHelper.overrideExtensionsAfterBrowserInit = function TSTWH_ove
|
|||||||
if (
|
if (
|
||||||
TreeStyleTabUtils.getTreePref('compatibility.TMP') &&
|
TreeStyleTabUtils.getTreePref('compatibility.TMP') &&
|
||||||
'TabmixTabbar' in window &&
|
'TabmixTabbar' in window &&
|
||||||
!DNDObserver.__treestyletab__clearDragmark
|
!TMP_tabDNDObserver.__treestyletab__clearDragmark
|
||||||
) {
|
) {
|
||||||
let DNDObserver = 'TMP_tabDNDObserver' in window ? TMP_tabDNDObserver : TabDNDObserver ;
|
this.updateTabDNDObserver(TMP_tabDNDObserver);
|
||||||
this.updateTabDNDObserver(DNDObserver);
|
TMP_tabDNDObserver.__treestyletab__clearDragmark = TMP_tabDNDObserver.clearDragmark;
|
||||||
DNDObserver.__treestyletab__clearDragmark = DNDObserver.clearDragmark;
|
TMP_tabDNDObserver.clearDragmark = function(...aArgs) {
|
||||||
DNDObserver.clearDragmark = function(...aArgs) {
|
|
||||||
var result = this.__treestyletab__clearDragmark(...aArgs);
|
var result = this.__treestyletab__clearDragmark(...aArgs);
|
||||||
gBrowser.treeStyleTab.tabbarDNDObserver.clearDropPosition();
|
gBrowser.treeStyleTab.tabbarDNDObserver.clearDropPosition();
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user