From fa3500e3bbd11caa0e7ad1633b85f95600cf962f Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sat, 25 Sep 2021 16:10:08 +0900 Subject: Sort frame IDs --- src/background/repositories/ReadyFrameRepository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/background') diff --git a/src/background/repositories/ReadyFrameRepository.ts b/src/background/repositories/ReadyFrameRepository.ts index 72ae5a4..aa5d986 100644 --- a/src/background/repositories/ReadyFrameRepository.ts +++ b/src/background/repositories/ReadyFrameRepository.ts @@ -36,7 +36,7 @@ export class ReadyFrameRepositoryImpl implements ReadyFrameRepository { if (typeof state === "undefined") { state = {}; } - state[tabId] = (state[tabId] || []).concat(frameId); + state[tabId] = (state[tabId] || []).concat(frameId).sort(); this.cache.set(REPOSITORY_KEY, state); return Promise.resolve(); } -- cgit v1.2.3