File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 4
4
< head >
5
5
< meta charset ="utf-8 ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
7
- < link rel ="icon " type ="image/png " href ="./favicon.png " />
8
7
< title > emgithub</ title >
9
8
< link href ="
https://cdn.jsdelivr.net/npm/[email protected] /dist/css/bootstrap.min.css "
rel ="
stylesheet "
10
9
integrity ="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx " crossorigin ="anonymous ">
@@ -496,6 +495,13 @@ <h1>emgithub</h1>
496
495
// Is entering the site directly
497
496
targetInput . placeholder = "https://github.com/user/repository/blob/branch/src/hello.cpp#L2-L6" ;
498
497
}
498
+
499
+ // Add the favicon dynamically
500
+ const link = document . createElement ( "link" ) ;
501
+ link . type = "image/png" ;
502
+ link . rel = "icon" ;
503
+ link . href = `${ parts . current } favicon.png` ;
504
+ document . head . appendChild ( link ) ;
499
505
} ) ;
500
506
501
507
function switchTypeSelect ( ) {
You can’t perform that action at this time.
0 commit comments