From 0469a3c2e2b33e57b0357120b374213fe8bdfd04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sta=C5=9B=20Ma=C5=82olepszy?= Date: Tue, 2 May 2017 18:38:21 +0200 Subject: [PATCH] Disable FSI/PDI isolating on IE11 --- src/web/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/web/index.js b/src/web/index.js index 918ff590..c35b3b27 100644 --- a/src/web/index.js +++ b/src/web/index.js @@ -14,7 +14,11 @@ import { documentReady, getResourceLinks, getMeta } from './util'; // used to create new `MessageContext` objects for a given `lang` with selected // builtin functions. function createContext(lang) { - return new MessageContext(lang); + // IE11 renders FSI and PDI as mojibakes so we turn them off. + const isIE11 = navigator.userAgent.indexOf('Trident') > -1; + return new MessageContext(lang, { + useIsolating: !isIE11 + }); } // Called for every named Localization declared via elements.