Skip to content

Commit

Permalink
fix: fix dark-mode.js
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Aug 12, 2019
1 parent c48df5a commit a1f88d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/dark-mode.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Note: Original code from https://derekkedziora.com/blog/dark-mode

{{- $themeColor := .Site.Params.themeColor -}}
{{- $themeColorDark := .Site.Params.themeColorDark -}}
{{ $themeColor := .Site.Params.themeColor }}
{{ $themeColorDark := .Site.Params.themeColorDark }}

const userPrefers = getComputedStyle(document.documentElement).getPropertyValue('content');

Expand Down

0 comments on commit a1f88d7

Please sign in to comment.