accounts-frontend/src/polyfills.js

16 lines
515 B
JavaScript
Raw Normal View History

import 'babel-polyfill';
import 'url-search-params-polyfill';
2017-04-13 00:04:12 +05:30
import 'whatwg-fetch';
import { shim as shimPromiseFinaly } from 'promise.prototype.finally';
shimPromiseFinaly();
2016-07-30 00:59:27 +05:30
// allow :active styles in mobile Safary
document.addEventListener('touchstart', () => {}, true);
// disable mobile safary back-forward cache
// http://stackoverflow.com/questions/8788802/prevent-safari-loading-from-cache-when-back-button-is-clicked
window.onpageshow = (event) => {
event.persisted && window.location.reload();
};