diff options
-rw-r--r-- | tab-history.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tab-history.js b/tab-history.js index ff5b33b..e6d61c3 100644 --- a/tab-history.js +++ b/tab-history.js @@ -72,7 +72,7 @@ var tabHistory = (function(){ currentTab = history[i]; if (prevTab === currentTab) { - history.splice(i, 1); + history.splice(i--, 1); if (i <= index) --index; } |