Skip to content

Commit

Permalink
fix(Polyfills): Fix scrollTo polyfill import
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusNotheis committed Mar 19, 2020
1 parent 90840fe commit 9fa2e1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/base/src/polyfill/Edge.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import ResizeObserver from 'resize-observer-polyfill';
import 'intersection-observer';
import smoothscroll from 'smoothscroll-polyfill';
import { polyfill as scrollToPolyfill } from 'smoothscroll-polyfill';

// @ts-ignore
window.ResizeObserver = ResizeObserver;

// required for scrollTo methods
smoothscroll.polyfill();
scrollToPolyfill();
4 changes: 2 additions & 2 deletions packages/base/src/polyfill/IE11.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import 'core-js/modules/es.object.values';
import 'core-js/modules/es.array.from';
import ResizeObserver from 'resize-observer-polyfill';
import 'intersection-observer';
import smoothscroll from 'smoothscroll-polyfill';
import { polyfill as scrollToPolyfill } from 'smoothscroll-polyfill';

// @ts-ignore
window.ResizeObserver = ResizeObserver;

// required for scrollTo methods
smoothscroll.polyfill();
scrollToPolyfill();

0 comments on commit 9fa2e1b

Please sign in to comment.