Skip to content

Commit

Permalink
Defaulting to dark theme irrespective of system set value (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubhaankar-Sharma authored Aug 21, 2021
1 parent 909cf89 commit 9d73c84
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
</head>
<body>
<div id="app">Loading ...</div>
<!-- set dark mode if not already set -->
<script>
if (!localStorage.getItem('DARK_LIGHT_THEME')){
localStorage.setItem('DARK_LIGHT_THEME', 'dark');
}
</script>
<script>
window.$docsify = {
name: 'chi',
Expand Down

0 comments on commit 9d73c84

Please sign in to comment.