15 lines
		
	
	
	
		
			510 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			510 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import {
 | 
						|
  importURLSearchParams,
 | 
						|
  importIntersectionObserver,
 | 
						|
  importRequestIdleCallback,
 | 
						|
  importIndexedDBGetAllShim
 | 
						|
} from './asyncModules'
 | 
						|
 | 
						|
export function loadPolyfills () {
 | 
						|
  return Promise.all([
 | 
						|
    typeof URLSearchParams === 'undefined' && importURLSearchParams(),
 | 
						|
    typeof IntersectionObserver === 'undefined' && importIntersectionObserver(),
 | 
						|
    typeof requestIdleCallback === 'undefined' && importRequestIdleCallback(),
 | 
						|
    !IDBObjectStore.prototype.getAll && importIndexedDBGetAllShim()
 | 
						|
  ])
 | 
						|
}
 |