Commit d86703e5 authored by Andrew Sliwinski's avatar Andrew Sliwinski

Add window.Intl polyfill. Resolves GH-96

parent 737a5329
......@@ -28,10 +28,10 @@
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" href="/css/lib/normalize.min.css" />
<!-- Shim/Sham ES5 polyfill for older browsers -->
<!-- Polyfill -->
<script src="/js/lib/polyfill.min.js"></script>
<!-- Initialize (Locale & Session) -->
<!-- Initialize (Session & Localization) -->
<script src="/js/init.bundle.js"></script>
</head>
......
......@@ -3,9 +3,12 @@ var jar = require('./lib/jar');
var translations = require('../locales/translations.json');
require('custom-event-polyfill');
/**
* -----------------------------------------------------------------------------
* Session
* -----------------------------------------------------------------------------
*/
// Session
(function () {
window._session = {};
......@@ -46,7 +49,11 @@ require('custom-event-polyfill');
window.refreshSession();
})();
// L10N
/**
* -----------------------------------------------------------------------------
* L10N
* -----------------------------------------------------------------------------
*/
(function () {
/**
* Bind locale code from cookie if available. Uses navigator language API as a fallback.
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment