moved non-async init earlier in main.js
This commit is contained in:
parent
7dd20f3c04
commit
0640902350
1 changed files with 8 additions and 6 deletions
14
app/main.js
14
app/main.js
|
@ -17,14 +17,16 @@ import './main.css';
|
||||||
import User from './user';
|
import User from './user';
|
||||||
import { getTranslator } from './locale';
|
import { getTranslator } from './locale';
|
||||||
|
|
||||||
|
if (navigator.doNotTrack !== '1' && window.RAVEN_CONFIG) {
|
||||||
|
Raven.config(window.SENTRY_ID, window.RAVEN_CONFIG).install();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (process.env.NODE_ENV === 'production') {
|
||||||
|
nanotiming.disabled = true;
|
||||||
|
}
|
||||||
|
|
||||||
(async function start() {
|
(async function start() {
|
||||||
const app = routes(choo());
|
const app = routes(choo());
|
||||||
if (process.env.NODE_ENV === 'production') {
|
|
||||||
nanotiming.disabled = true;
|
|
||||||
}
|
|
||||||
if (navigator.doNotTrack !== '1' && window.RAVEN_CONFIG) {
|
|
||||||
Raven.config(window.SENTRY_ID, window.RAVEN_CONFIG).install();
|
|
||||||
}
|
|
||||||
const capa = await capabilities();
|
const capa = await capabilities();
|
||||||
if (capa.streamDownload) {
|
if (capa.streamDownload) {
|
||||||
navigator.serviceWorker.register('/serviceWorker.js');
|
navigator.serviceWorker.register('/serviceWorker.js');
|
||||||
|
|
Loading…
Reference in a new issue