Fix wrong comment

This commit is contained in:
YUKI "Piro" Hiroshi 2019-04-19 00:14:27 +09:00 committed by GitHub
parent 00a99b1fea
commit 2d07657019
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;