Skip to content

Commit

Permalink
fix: polyfill content fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed Nov 9, 2020
1 parent 417d69e commit ecb738e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test-server/src/polyfill-light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@
* Target: Edge, Safari 9
*/
import 'intersection-observer/intersection-observer';
import {ResizeObserver} from '@juggle/resize-observer';

if ('ResizeObserver' in window) {
(window as any).ResizeObserver = ResizeObserver;
}
import {ResizeObserver} from '@juggle/resize-observer';
window.ResizeObserver = window.ResizeObserver || ResizeObserver;

import '@webcomponents/custom-elements/custom-elements.min';

// @ts-ignore
import smoothscroll from 'smoothscroll-polyfill';
smoothscroll.polyfill();

0 comments on commit ecb738e

Please sign in to comment.