File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
public/apps/app store.tapp Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,15 @@ async function loadApp(app, type) {
179
179
break ;
180
180
case "Anura" :
181
181
case "tb-liq" :
182
- const icn2 = await window . parent . tb . libcurl . fetch ( `${ currRepo . url . replace ( "manifest.json" , "" ) } /apps/${ app . package } /${ app . icon } ` ) ;
182
+ let icn2 ;
183
+ if ( currRepo . url ) {
184
+ icn2 = await window . parent . tb . libcurl . fetch ( `${ currRepo . url . replace ( "manifest.json" , "" ) } /apps/${ app . package } /${ app . icon } ` ) ;
185
+ } else {
186
+ icn2 = await window . parent . tb . libcurl . fetch ( app . icon ) ;
187
+ }
188
+ if ( ! icn2 . ok ) {
189
+ icn2 = await window . parent . tb . libcurl . fetch ( "https://terbiumon.top/favicon.ico" ) ;
190
+ }
183
191
const blob2 = await icn2 . blob ( ) ;
184
192
icnUrl = URL . createObjectURL ( blob2 ) ;
185
193
break ;
@@ -461,7 +469,7 @@ async function addRepo() {
461
469
const list = await window . parent . tb . libcurl . fetch ( value . replace ( "manifest.json" , "list.json" ) ) ;
462
470
if ( list . ok ) {
463
471
repos . push ( {
464
- name : name || meta . name || "Unknown" ,
472
+ name : meta . name || "Unknown" ,
465
473
url : value ,
466
474
icon : "https://anura.pro/icon.png" ,
467
475
} ) ;
You can’t perform that action at this time.
0 commit comments