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 @@ -167,7 +167,15 @@ async function loadApp(app, type) {
167
167
break ;
168
168
case "Anura" :
169
169
case "tb-liq" :
170
- const icn2 = await window . parent . tb . libcurl . fetch ( `${ currRepo . url . replace ( "manifest.json" , "" ) } /apps/${ app . package } /${ app . icon } ` ) ;
170
+ let icn2
171
+ if ( currRepo . url ) {
172
+ icn2 = await window . parent . tb . libcurl . fetch ( `${ currRepo . url . replace ( "manifest.json" , "" ) } /apps/${ app . package } /${ app . icon } ` ) ;
173
+ } else {
174
+ icn2 = await window . parent . tb . libcurl . fetch ( app . icon ) ;
175
+ }
176
+ if ( ! icn2 . ok ) {
177
+ icn2 = await window . parent . tb . libcurl . fetch ( "https://terbiumon.top/favicon.ico" ) ;
178
+ }
171
179
const blob2 = await icn2 . blob ( ) ;
172
180
icnUrl = URL . createObjectURL ( blob2 ) ;
173
181
break ;
@@ -449,7 +457,7 @@ async function addRepo() {
449
457
const list = await window . parent . tb . libcurl . fetch ( value . replace ( "manifest.json" , "list.json" ) ) ;
450
458
if ( list . ok ) {
451
459
repos . push ( {
452
- name : name || meta . name || "Unknown" ,
460
+ name : meta . name || "Unknown" ,
453
461
url : value ,
454
462
icon : "https://anura.pro/icon.png" ,
455
463
} ) ;
You can’t perform that action at this time.
0 commit comments