File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ import {RelativeTimeFormat as RelativeTimeFormatPonyfill} from './relative-time-
4
4
import { isDuration , withinDuration } from './duration.js'
5
5
import { strftime } from './strftime.js'
6
6
7
- const supportsIntlDatetime = 'Intl' in window && 'DateTimeFormat'
7
+ const supportsIntlDatetime = 'Intl' in window && 'DateTimeFormat' in Intl
8
8
const DateTimeFormat = supportsIntlDatetime ? Intl . DateTimeFormat : DateTimeFormatPonyFill
9
9
10
- const supportsIntlRelativeTime = 'Intl' in window && 'RelativeTimeFormat'
10
+ const supportsIntlRelativeTime = 'Intl' in window && 'RelativeTimeFormat' in Intl
11
11
const RelativeTimeFormat = supportsIntlRelativeTime ? Intl . RelativeTimeFormat : RelativeTimeFormatPonyfill
12
12
13
13
export type Format = 'auto' | 'micro' | string
You can’t perform that action at this time.
0 commit comments