Skip to content

Commit

Permalink
unbork frame list deduplication
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Mar 9, 2024
1 parent 9201b76 commit 054d2b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/popup-get-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ async function popupGetStyles() {
frames.length = 0;
for (const sortedFrames of [known, unknown]) {
for (const f of sortedFrames.values()) {
f.isDupe = urls.has(f.url || (f.url = ''));
const u = f.url || (f.url = '');
f.isDupe = urls.has(u);
urls.add(u);
frames.push(f);
}
}
Expand Down

0 comments on commit 054d2b5

Please sign in to comment.