fix popup find error

This commit is contained in:
tophf 2022-03-06 03:02:41 +03:00
parent 6d721fe7a5
commit 9ed550c882

View File

@ -92,9 +92,10 @@ async function initPopup(frames) {
const elFind = $('#find-styles-btn');
elFind.onclick = async e => {
elFind.disabled = e.type === 'click';
const inline = e.type === 'click';
if (inline) elFind.disabled = true;
await require(['/popup/search']);
Events.searchSite(e);
if (!inline) Events.searchSite(e);
};
elFind.on('split-btn', elFind.onclick);