Compare commits
4
Commits
dd06829f31
...
1.1.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ec60455cf | ||
|
|
c9409996fe | ||
|
|
669a288ef1 | ||
|
|
b47d994989 |
@@ -8,6 +8,7 @@ defmodule DecentralisedBookIndex.Metadata do
|
||||
base_route "/books", Metadata.Book do
|
||||
get :by_id
|
||||
index :search
|
||||
index :search_by_bid, route: "/search-by-bid"
|
||||
|
||||
related :bids, :read, primary?: true
|
||||
related :author_roles, :read, primary?: true
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</script>
|
||||
<script>
|
||||
// On page load or when changing themes, best to add inline in `head` to avoid FOUC
|
||||
if (localStorage.getItem('color-theme') === 'dark' || (!('color-theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
||||
if (localStorage.getItem('theme') === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
||||
document.documentElement.classList.add('dark');
|
||||
} else {
|
||||
document.documentElement.classList.remove('dark')
|
||||
|
||||
Reference in New Issue
Block a user