show iframe "+" only if there's a unique url

This commit is contained in:
tophf 2021-09-24 19:18:57 +03:00
parent e5807a7823
commit eaef854bcf

View File

@ -140,11 +140,10 @@ async function initPopup(frames) {
}
frames.forEach(createWriterElement);
if (frames.length > 1) {
const el = $('#write-for-frames');
el.hidden = false;
el.onclick = () => el.classList.toggle('expanded');
}
Object.assign($('#write-for-frames'), {
onclick: e => e.currentTarget.classList.toggle('expanded'),
hidden: frames.length < 2 || !$('.match .match:not(.dupe)'),
});
const isStore = tabURL.startsWith(URLS.browserWebStore);
if (isStore && !FIREFOX) {