mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 18:07:51 +08:00
_website: Fix use of location.hostname.
This commit is contained in:
parent
fb72de8ce6
commit
31c7ad84d1
|
@ -31,8 +31,7 @@
|
|||
|
||||
<script>
|
||||
// If the domain starts with "dark.", trigger dark mode.
|
||||
var hostname = location.href.hostname;
|
||||
if (hostname && hostname.startsWith('dark.')) {
|
||||
if (location.hostname.startsWith('dark.')) {
|
||||
document.body.classList.add('dark');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user