File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 77 <!-- Web App Config -->
88 < title > SnapShare</ title >
99 < meta name ="viewport " content ="width=device-width, initial-scale=1.0, user-scalable=no ">
10- < meta name ="theme-color " content ="#3367d6 ">
10+ < meta name ="theme-color " content ="">
1111 < meta name ="color-scheme " content ="dark light ">
1212 < meta name ="apple-mobile-web-app-capable " content ="no ">
1313 < meta name ="apple-mobile-web-app-title " content ="SnapShare ">
Original file line number Diff line number Diff line change 2020 // Overwrite css primary color variable
2121 if ( window . snapshareConfig . PRIMARY_COLOR ) {
2222 document . documentElement . style . setProperty ( '--primary-color' , window . snapshareConfig . PRIMARY_COLOR ) ;
23+
24+ // update theme-color meta tag
25+ document . querySelector ( "meta[name=theme-color]" ) . setAttribute ( "content" , window . snapshareConfig . PRIMARY_COLOR ) ;
2326 }
2427
2528 // Listen for a click on the button
You can’t perform that action at this time.
0 commit comments