From 2d07657019d8fbdac24efabc1229bef61733385c Mon Sep 17 00:00:00 2001 From: "YUKI \"Piro\" Hiroshi" Date: Fri, 19 Apr 2019 00:14:27 +0900 Subject: [PATCH] Fix wrong comment --- src/js/background/backgroundLogic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/background/backgroundLogic.js b/src/js/background/backgroundLogic.js index 4f55714..f18a1ce 100644 --- a/src/js/background/backgroundLogic.js +++ b/src/js/background/backgroundLogic.js @@ -288,8 +288,8 @@ const backgroundLogic = { let newIndex = nearestFollowingIndex < afterIds.length ? sortedIds.indexOf(afterIds[nearestFollowingIndex]) : -1; if (newIndex < 0) newIndex = beforeIds.length; - // Reject already moved tabs. let oldIndices = movingIds.map(id => sortedIds.indexOf(id)); + // Reject already removed tabs. movingIds = movingIds.filter((id, index) => oldIndices[index] > -1); if (movingIds.length === 0) continue;