bigbluebutton-Github/bigbluebutton-html5/client/main.jsx
2017-10-24 10:59:23 -02:00

17 lines
479 B
JavaScript
Executable File

import React from 'react';
import { Meteor } from 'meteor/meteor';
import { render } from 'react-dom';
import { renderRoutes } from '/imports/startup/client/routes';
import { log } from '/imports/ui/services/api';
Meteor.startup(() => {
render(renderRoutes(), document.getElementById('app'));
// Log all uncaught exceptions to the server
// TODO: There is no StackTrace on the ErrorEvent object
window.addEventListener('error', (e) => {
log('error', e);
});
});