Skip to content

Commit cf95623

Browse files
committed
fix(@formatjs/intl-relativetimeformat): remove Intl check
Refer to https://formatjs.io/docs/polyfills to check the correct Intl API hierarchy
1 parent e0ff6a1 commit cf95623

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export function shouldPolyfill() {
2-
return typeof Intl === 'undefined' || !('RelativeTimeFormat' in Intl)
2+
return !('RelativeTimeFormat' in Intl)
33
}

0 commit comments

Comments
 (0)