From 56afa757acc057adda32591668f455c14f2de35e Mon Sep 17 00:00:00 2001 From: Infocatcher Date: Sat, 20 Jul 2013 04:52:06 +0400 Subject: [PATCH] Correctly add "(private tab)" label to Tab Scope popup (fix #78) --- bootstrap.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bootstrap.js b/bootstrap.js index beaca5d..98ab0bd 100644 --- a/bootstrap.js +++ b/bootstrap.js @@ -1734,9 +1734,13 @@ var windowsObserver = { var tabScope = document.getElementById("tabscope-popup"); if(tabScope && "TabScope" in window && "_updateTitle" in window.TabScope) { + var tsTitle = document.getElementById("tabscope-title"); + var tsContainer = tsTitle && tsTitle.parentNode + || document.getElementById("tabscope-container") + || tabScope; var tsTipLabel = tabTipLabel.cloneNode(true); tsTipLabel.id = this.tabScopeTipId; - tabScope.appendChild(tsTipLabel); + tsContainer.appendChild(tsTipLabel); var _this = this; patcher.wrapFunction( window.TabScope, "_updateTitle", "TabScope._updateTitle",