From 6c46a891428f1d06259749e3a2caff552266007a Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 24 Oct 2015 09:24:27 -0400 Subject: [PATCH] truncate pointlessly too long labels in selector --- src/js/logger-ui.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/logger-ui.js b/src/js/logger-ui.js index d532cce85..e93f9a551 100644 --- a/src/js/logger-ui.js +++ b/src/js/logger-ui.js @@ -628,7 +628,8 @@ var synchronizeTabIds = function(newTabIds) { option = document.createElement('option'); select.appendChild(option); } - option.textContent = newTabIds[tabId]; + // Truncate too long labels. + option.textContent = newTabIds[tabId].slice(0, 80); option.value = classNameFromTabId(tabId); if ( option.value === selectValue ) { select.selectedIndex = j;