Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
importPolyfills().then(() => {
const rootEl = document.getElementById('root');
renderStorybookUI(rootEl, new Provider());
});
import { window, location, document } from 'global';
import renderStorybookUI from '@storybook/ui';
import Provider from './provider';
const rootEl = document.getElementById('root');
renderStorybookUI(rootEl, new Provider({ url: location.host, options: window.storybookOptions }));