2019-06-30 20:49:28 +05:30
|
|
|
import 'core-js/stable';
|
|
|
|
import 'regenerator-runtime/runtime';
|
2017-05-26 00:41:57 +05:30
|
|
|
import 'url-search-params-polyfill';
|
2017-04-13 00:04:12 +05:30
|
|
|
import 'whatwg-fetch';
|
2020-01-18 02:07:52 +05:30
|
|
|
import { shim as shimPromiseFinally } from 'promise.prototype.finally';
|
2017-10-28 19:08:07 +05:30
|
|
|
import { polyfill as rafPolyfill } from 'raf';
|
2016-12-06 00:55:23 +05:30
|
|
|
|
2017-10-28 19:08:07 +05:30
|
|
|
rafPolyfill();
|
2020-01-18 02:07:52 +05:30
|
|
|
shimPromiseFinally();
|
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
|
2020-01-18 02:07:52 +05:30
|
|
|
window.onpageshow = (event: PageTransitionEvent) => {
|
2020-05-24 04:38:24 +05:30
|
|
|
event.persisted && window.location.reload();
|
2016-08-27 19:10:14 +05:30
|
|
|
};
|