2017-10-24 21:01:58 +08:00
|
|
|
/* eslint no-unused-vars: 0 */
|
2016-05-04 04:40:46 +08:00
|
|
|
import React from 'react';
|
2016-04-29 03:02:51 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
import { render } from 'react-dom';
|
2017-10-24 20:59:23 +08:00
|
|
|
import { log } from '/imports/ui/services/api';
|
2017-10-06 20:50:01 +08:00
|
|
|
import renderRoutes from '/imports/startup/client/routes';
|
2016-05-12 04:43:07 +08:00
|
|
|
|
2016-01-13 04:15:16 +08:00
|
|
|
Meteor.startup(() => {
|
2017-03-10 03:50:21 +08:00
|
|
|
render(renderRoutes(), document.getElementById('app'));
|
2017-10-24 20:59:23 +08:00
|
|
|
|
|
|
|
// Log all uncaught exceptions to the server
|
|
|
|
// TODO: There is no StackTrace on the ErrorEvent object
|
|
|
|
window.addEventListener('error', (e) => {
|
|
|
|
log('error', e);
|
|
|
|
});
|
2016-01-13 04:15:16 +08:00
|
|
|
});
|