2016-06-01 10:29:15 +05:30
|
|
|
import 'babel-polyfill';
|
2016-11-27 16:19:48 +05:30
|
|
|
import 'whatwg-fetch';
|
2016-12-06 00:55:23 +05:30
|
|
|
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);
|
2016-08-27 19:10:14 +05:30
|
|
|
|
|
|
|
// 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();
|
|
|
|
};
|