diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 75f6508b..6ee76bc2 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -478,8 +478,8 @@ TreeStyleTabBrowser.prototype = { if ('_onDragEnd' in b) { eval('b._onDragEnd = '+b._onDragEnd.toSource().replace( - 'this._replaceTabWithWindow(', - 'if (this.treeStyleTab.isDraggingAllTabs(draggedTab)) return; $&' + /(this\._?replaceTabWithWindow\()', + 'if (this.treeStyleTab.isDraggingAllTabs(draggedTab)) return; $1' )); }