2019-06-30 18:19:28 +03:00
|
|
|
import 'core-js/stable';
|
|
|
|
import 'regenerator-runtime/runtime';
|
2017-05-25 22:11:57 +03:00
|
|
|
import 'url-search-params-polyfill';
|
2017-04-12 21:34:12 +03:00
|
|
|
import 'whatwg-fetch';
|
2020-01-17 23:37:52 +03:00
|
|
|
import { shim as shimPromiseFinally } from 'promise.prototype.finally';
|
2017-10-28 16:38:07 +03:00
|
|
|
import { polyfill as rafPolyfill } from 'raf';
|
2016-12-05 21:25:23 +02:00
|
|
|
|
2017-10-28 16:38:07 +03:00
|
|
|
rafPolyfill();
|
2020-01-17 23:37:52 +03:00
|
|
|
shimPromiseFinally();
|
2016-07-29 22:29:27 +03:00
|
|
|
|
|
|
|
// allow :active styles in mobile Safary
|
|
|
|
document.addEventListener('touchstart', () => {}, true);
|
2016-08-27 16:40:14 +03:00
|
|
|
|
|
|
|
// disable mobile safary back-forward cache
|
|
|
|
// http://stackoverflow.com/questions/8788802/prevent-safari-loading-from-cache-when-back-button-is-clicked
|
2020-01-17 23:37:52 +03:00
|
|
|
window.onpageshow = (event: PageTransitionEvent) => {
|
2020-05-24 02:08:24 +03:00
|
|
|
event.persisted && window.location.reload();
|
2016-08-27 16:40:14 +03:00
|
|
|
};
|