Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit 5df8c7c

Browse files
committed
Following comments
1 parent 359d2c0 commit 5df8c7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ if (global.Intl) {
5656
if (!areIntlLocalesSupported(localesMyAppSupports)) {
5757
// `Intl` exists, but it doesn't have the data we need, so load the
5858
// polyfill and replace the constructors with need with the polyfill's.
59-
require('intl'); // declares global var 'IntlPolyfill'
59+
var IntlPolyfill = require('intl'); // will not replace global Intl since it already exists
6060
Intl.NumberFormat = IntlPolyfill.NumberFormat;
6161
Intl.DateTimeFormat = IntlPolyfill.DateTimeFormat;
6262
}

0 commit comments

Comments
 (0)