17 lines
		
	
	
		
			No EOL
		
	
	
		
			604 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			No EOL
		
	
	
		
			604 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
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(),
 | 
						|
    !IDBObjectStore.prototype.getAll && importIndexedDBGetAllShim(),
 | 
						|
    typeof HTMLDialogElement === 'undefined' && importDialogPolyfill()
 | 
						|
  ])
 | 
						|
} |