Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
naiba committed Jan 27, 2022
1 parent 1b958c0 commit 14f935e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 无聊湾

NAiVe · 湾友导航
NAiVe · 无聊人的中继站

## 加入我们

Expand Down
4 changes: 2 additions & 2 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<div class="page-wrapper with-navbar">
<nav class="navbar">
<div class="container">
<a href="#" class="navbar-brand">
<a href="https://boringbay.com" class="navbar-brand">
<img src="/api/icon/boringbay.com" alt="The Boring Bay"> 无聊湾
</a>
<div class="navbar-content ml-auto">
Expand Down Expand Up @@ -69,7 +69,7 @@
}

(function () {
if ((halfmoon.getPreferredMode() == 'dark-mode') != (halfmoon.darkModeOn)) {
if (((halfmoon.getPreferredMode() == 'dark-mode') || window.matchMedia('(prefers-color-scheme: dark)').matches) != halfmoon.darkModeOn) {
toggleDarkMode()
} else {
updateDayNightIcon()
Expand Down

0 comments on commit 14f935e

Please sign in to comment.