Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import loadScripts from '../utils/loadScripts';
- import IndexController from './IndexController';
- const polyfillsNeeded = [];
- if (!('Promise' in self)) polyfillsNeeded.push('/js/polyfills/promise.js');
- try {
- new URL('b', 'http://a');
- }
- catch (e) {
- polyfillsNeeded.push('/js/polyfills/url.js');
- }
- loadScripts(polyfillsNeeded, function() {
- new IndexController(document.querySelector('.main'));
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement