diff --git a/content/treestyletab/windowHelperHacks.js b/content/treestyletab/windowHelperHacks.js index 91144f26..1415047e 100644 --- a/content/treestyletab/windowHelperHacks.js +++ b/content/treestyletab/windowHelperHacks.js @@ -588,12 +588,12 @@ TreeStyleTabWindowHelper.overrideExtensionsAfterBrowserInit = function TSTWH_ove !duplicatethistab.__treestyletab__openLinkWithHistory) { duplicatethistab.__treestyletab__openLinkWithHistory = duplicatethistab.openLinkWithHistory; duplicatethistab.openLinkWithHistory = function(...aArgs) { - TreeStyleTabService.readyToOpenChildTabNow(); + gBrowser.treeStyleTab.onBeforeTabDuplicate(); return this.__treestyletab__openLinkWithHistory(...aArgs); }; duplicatethistab.__treestyletab__duplicateInTab = duplicatethistab.duplicateInTab; duplicatethistab.duplicateInTab = function(...aArgs) { - TreeStyleTabService.readyToOpenChildTabNow(); + gBrowser.treeStyleTab.onBeforeTabDuplicate(); return this.__treestyletab__duplicateInTab(...aArgs); }; }