show iframe "+" only if there's a unique url
This commit is contained in:
parent
e5807a7823
commit
eaef854bcf
|
@ -140,11 +140,10 @@ async function initPopup(frames) {
|
||||||
}
|
}
|
||||||
|
|
||||||
frames.forEach(createWriterElement);
|
frames.forEach(createWriterElement);
|
||||||
if (frames.length > 1) {
|
Object.assign($('#write-for-frames'), {
|
||||||
const el = $('#write-for-frames');
|
onclick: e => e.currentTarget.classList.toggle('expanded'),
|
||||||
el.hidden = false;
|
hidden: frames.length < 2 || !$('.match .match:not(.dupe)'),
|
||||||
el.onclick = () => el.classList.toggle('expanded');
|
});
|
||||||
}
|
|
||||||
|
|
||||||
const isStore = tabURL.startsWith(URLS.browserWebStore);
|
const isStore = tabURL.startsWith(URLS.browserWebStore);
|
||||||
if (isStore && !FIREFOX) {
|
if (isStore && !FIREFOX) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user