2018-01-28 01:31:26 +01:00
|
|
|
import {
|
|
|
|
importURLSearchParams,
|
|
|
|
importIntersectionObserver,
|
|
|
|
importRequestIdleCallback,
|
|
|
|
importIndexedDBGetAllShim,
|
|
|
|
importDialogPolyfill
|
|
|
|
} from './asyncModules'
|
|
|
|
|
|
|
|
export function loadPolyfills() {
|
|
|
|
return Promise.all([
|
|
|
|
typeof URLSearchParams === 'undefined' && importURLSearchParams(),
|
|
|
|
typeof IntersectionObserver === 'undefined' && importIntersectionObserver(),
|
|
|
|
typeof requestIdleCallback === 'undefined' && importRequestIdleCallback(),
|
2018-02-05 04:15:35 +01:00
|
|
|
!IDBObjectStore.prototype.getAll && importIndexedDBGetAllShim()
|
2018-01-28 01:31:26 +01:00
|
|
|
])
|
|
|
|
}
|