Skip to content

Commit 2173e33

Browse files
committed
Fix per-site permissions UI glitches when base domain is added to existing subdomain (thanks barbaz for reporting).
1 parent 53fedbc commit 2173e33

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ui/ui.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ var UI = (() => {
897897
highlight(key) {
898898
key = Sites.toExternal(key);
899899
for (let r of this.allSiteRows()) {
900-
if (r.querySelector(".full-address").textContent.trim().includes(key)) {
900+
if (r.querySelector(".full-address").textContent.trim().replace(/^.*:\/\//, '') === key) {
901901
let url = r.lastElementChild;
902902
url.style.transition = r.style.transition = "none";
903903
r.style.backgroundColor = "#850";
@@ -910,6 +910,7 @@ var UI = (() => {
910910
url.style.transform = "none";
911911
r.scrollIntoView();
912912
}, 50);
913+
break;
913914
}
914915
}
915916
}

0 commit comments

Comments
 (0)