File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @kunkun/kunkun-ext-youtube-downloader" ,
3- "version" : " 0.1.5 " ,
3+ "version" : " 0.1.6 " ,
44 "license" : " MIT" ,
55 "exports" : " ./mod.ts" ,
66 "imports" : {
Original file line number Diff line number Diff line change 11{
22 "$schema" : " https://schema.kunkun.sh" ,
33 "name" : " kunkun-ext-youtube-dowloader" ,
4- "version" : " 0.1.5 " ,
4+ "version" : " 0.1.6 " ,
55 "license" : " MIT" ,
66 "type" : " module" ,
77 "kunkun" : {
Original file line number Diff line number Diff line change @@ -178,7 +178,11 @@ class DownloadYouTubeExtension extends TemplateUiCommand {
178178 } ) ;
179179 return ui . goBack ( ) ;
180180 }
181-
181+ const hasText = await clipboard . hasText ( ) ;
182+ if ( ! hasText ) {
183+ toast . warning ( "No text found in clipboard" ) ;
184+ return ui . goBack ( ) ;
185+ }
182186 let url = await clipboard . readText ( ) ;
183187 // url = "https://youtu.be/-b1FogYHTZc"; // for development only
184188 // check if url is a valid youtube url
You can’t perform that action at this time.
0 commit comments