fix: tests

This commit is contained in:
Xyphyn committed 2023-07-30 12:01:59 -07:00
1 parent 8234fb601d
commit 8b5d314191
1 file changed
+1 -3
+1 -3
View File
@@ -1,6 +1,4 @@
<script lang="ts">
import { browser } from '$app/environment'
export let date: Date
export let relativeTo: Date | undefined = undefined
export let options: Intl.RelativeTimeFormatOptions = {
@@ -28,7 +26,7 @@
const value = Math.round(diffInMillis / thresholds[i].threshold)
let language = 'en'
if (browser) {
if (typeof navigator != 'undefined') {
language = navigator.language
}