Skip to content

Commit 4cf4f01

Browse files
keithamuskoddsson
andcommitted
fix lint errors
Co-authored-by: Kristján Oddsson <koddsson@gmail.com>
1 parent dd352bb commit 4cf4f01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function storeColorSchemePreference() {
22
// Get color scheme preference from URL
3-
const url = new URL(window.location.href)
3+
const url = new URL(window.location.href, window.location.origin)
44
const params = new URLSearchParams(url.search)
55

66
// Return early if there’s nothing to store

0 commit comments

Comments
 (0)