File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 < meta name ="theme-color " content ="#000000 " />
88 < link rel ="apple-touch-icon " href ="%PUBLIC_URL%/logo192.png " />
99 < link rel ="preconnect " href ="https://hackertab.dev " />
10- < script >
11- // Blocking script to avoid the initial background flickering (switching from light to dark)
12- // https://stackoverflow.com/a/63033934/3495717
13- try {
14- var theme = JSON . parse ( localStorage . hackerTabPrefs ) . theme || 'dark'
15- document . documentElement . classList . add ( theme )
16- } catch ( e ) { console . log ( e ) }
17- </ script >
10+
1811 < % if (!!+process.env.REACT_APP_WEB_BUILD) { %>
1912 < title > Hackertab</ title >
2013 < link rel ="manifest " href ="%PUBLIC_URL%/web_manifest.json " />
Original file line number Diff line number Diff line change 1+ // Blocking script to avoid the initial background flickering (switching from light to dark)
2+ // https://stackoverflow.com/a/63033934/3495717
3+ try {
4+ var theme = JSON . parse ( localStorage . hackerTabPrefs ) . theme || 'dark'
5+ document . documentElement . classList . add ( theme )
6+ } catch ( e ) {
7+ console . log ( e )
8+ }
You can’t perform that action at this time.
0 commit comments