From b1b46f275eba3e684a0a532b9f3c5ccc15a90a69 Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Sun, 22 Feb 2015 12:28:48 -0500 Subject: [PATCH] Fix bug where tabWord wouldn't change to singular --- popup.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/popup.js b/popup.js index 1343265..350a0d4 100644 --- a/popup.js +++ b/popup.js @@ -192,6 +192,9 @@ function decrementTabCount(tabLi){ if (windows.tagName.toLowerCase()!='ul' || windows.id!="windows"){ throw "Not a tab li"; } + if (num===1){ + li.querySelector('span.textContent>span.tabWord').textContent = " tab" + } if (num===0){ windows.removeChild(li); }