17 lines
479 B
JavaScript
Executable File
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);
|
|
});
|
|
});
|