Explorar o código

fix: manual lyrics search prompt

Sv443 hai 7 meses
pai
achega
2b5fbab690
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/features/lyrics.ts

+ 1 - 1
src/features/lyrics.ts

@@ -339,7 +339,7 @@ export async function createLyricsBtn(geniusUrl?: string, hideIfLoading = true)
       e.stopPropagation();
 
       const search = prompt(t("open_lyrics_search_prompt"));
-      if(search)
+      if(search && search.length > 0)
         openInTab(`https://genius.com/search?q=${encodeURIComponent(search)}`);
     }
   }, {