File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 "appName" : " SmartScan" ,
33 "developer" : " D41Dev" ,
44 "logo" : " public/icon.png" ,
5- "description" : " Search images and videos offline using text or reverse image search with on-device AI ." ,
5+ "description" : " An open source smart gallery app ." ,
66 "hero" : {
7- "title" : " Search media with SmartScan" ,
8- "tagline" : " An open source smart gallery app." ,
97 "cta" : " Download" ,
108 "image" : " public/banner.png"
119 },
10+ "favicon" : " public/favicon.ico" ,
1211 "screenshots" : [
1312 " public/screenshots/1.png" ,
1413 " public/screenshots/2.png" ,
Original file line number Diff line number Diff line change 11<!DOCTYPE html>
22< html lang ="en ">
33< head >
4+ < link id ="favicon " rel ="icon " type ="image/x-icon " href ="">
45< meta charset ="UTF-8 ">
56< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
67< title > SmartScan</ title >
@@ -243,14 +244,19 @@ <h2>Download</h2>
243244. then ( res => res . json ( ) )
244245. then ( config => {
245246 document . title = config . appName || '' ;
247+ // Favicon
248+ if ( config . favicon ) {
249+ const favicon = document . getElementById ( 'favicon' ) ;
250+ favicon . href = config . favicon ;
251+ }
246252
247253 const logo = document . getElementById ( 'hero-logo' ) ;
248254 if ( config . logo ) logo . src = config . logo ;
249255 else logo . style . display = 'none' ;
250256
251257 document . getElementById ( 'hero-title' ) . textContent = config . appName || '' ;
252258 document . getElementById ( 'hero-developer' ) . textContent = config . developer || '' ;
253- document . getElementById ( 'hero-tagline' ) . textContent = config . hero ?. tagline || '' ;
259+ document . getElementById ( 'hero-tagline' ) . textContent = config . description || '' ;
254260
255261 if ( config . hero ?. image ) {
256262 document . getElementById ( 'hero-bg' ) . style . backgroundImage = `url('${ config . hero . image } ')` ;
You can’t perform that action at this time.
0 commit comments