aboutsummaryrefslogtreecommitdiff
path: root/src/background
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2021-09-25 16:10:08 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2021-09-25 16:10:08 +0900
commitfa3500e3bbd11caa0e7ad1633b85f95600cf962f (patch)
tree15eabaf191d6f2389bfd7c0a48d50d64be8bd81d /src/background
parentb72728bdabf140c77f165b35813595dcaa060eea (diff)
Sort frame IDs
Diffstat (limited to 'src/background')
-rw-r--r--src/background/repositories/ReadyFrameRepository.ts2
1 files changed, 1 insertions, 1 deletions
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();
}