blob: 0554019bba9d66b879b51f08b8f004f09a1c9b82 [file] [log] [blame]
import * as Promise from 'bluebird';
import {renderComponent} from './components/component';
import {ErrorLogger} from './components/error_logger';
import {Router} from './components/router';
import {isCobalt} from './utils/shared_values';
if (isCobalt) {
// Use bluebird as the default promise because Cobalt does not support
// unhandledrejection natively.
window.Promise = Promise as any;
}
renderComponent(ErrorLogger, {}, document.querySelector('#error-logger')!);
renderComponent(Router, {}, document.querySelector('#router')!);