diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-11-26 09:10:24 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-26 09:10:24 +0530 |
| commit | b301d60f032879af25dc9c5747c868db9bf7cc6c (patch) | |
| tree | 2ef191791a732cd5c1bdb2faf70a88e497b3676a /layouts/partials/footer.html | |
| parent | 678b5d82fc5ddccfdcc7433328a380473c6807dd (diff) | |
theme-switch: Improve theme switch logic (#86)
- removes unnecessary local-storage item removal
- less inline script on build
- assumes `defaultTheme as auto when value is not `dark` or `light`
- should work according to table at docs
Diffstat (limited to 'layouts/partials/footer.html')
| -rw-r--r-- | layouts/partials/footer.html | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 779cd69..90cbeec 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -65,10 +65,4 @@ }) </script> -{{- else -}} -{{/* case where owner disables theme button after deployment, this resets the stored theme */}} -<script> - localStorage.removeItem("pref-theme"); - -</script> {{- end }} |
