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

Commit 54ef5de

Browse files
committed
forcing window.Intl to be defined if global Intl is undefined.
1 parent f814a88 commit 54ef5de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser-main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import IntlPolyfill from "./core.js";
33
// hack to export the polyfill as global Intl if needed
44
if (typeof Intl === 'undefined') {
55
try {
6-
Intl = IntlPolyfill;
6+
window.Intl = IntlPolyfill;
77
IntlPolyfill.__applyLocaleSensitivePrototypes();
88
} catch (e) {
99
// can be read only property

0 commit comments

Comments
 (0)