Prevent the display of buttons due to malfunction

This commit is contained in:
sienori 2018-06-02 22:45:59 +09:00
parent 1b8f2e89de
commit 2ccc55da0f

View file

@ -38,10 +38,12 @@ async function Select(e) {
clickPosition = e; clickPosition = e;
switch (S.get().whenSelectText) { switch (S.get().whenSelectText) {
case 'showButton': case 'showButton':
if(selectionWord.length==0) return;
popupButton(e); popupButton(e);
break; break;
case 'showPanel': case 'showPanel':
translate(selectionWord, 'auto', S.get().targetLang); translate(selectionWord, 'auto', S.get().targetLang);
if(selectionWord.length==0) return;
showPanel(e); showPanel(e);
break; break;
case 'dontShowButton': case 'dontShowButton':