Skip to content

Commit

Permalink
Update firebase-analytics dev script
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillunlimited committed Jul 24, 2021
1 parent f2b2906 commit 580f920
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@
"web-vitals": "^0.2.4"
},
"scripts": {
"start": "FAST_REFRESH=false react-scripts start",
"dev": "run-p --race dev:firebase dev:react",
"dev:firebase": "firebase serve -p 4000",
"start": "run-p --race dev:firebase dev:*",
"dev:firebase": "firebase emulators:start",
"dev:react": "FAST_REFRESH=false react-scripts start",
"build": "npx shx rm -rf build && react-scripts build",
"deploy": "npm run build && firebase deploy",
Expand All @@ -37,7 +36,7 @@
"coverage": "jest --coverage",
"coveralls": "jest --coverage && cat ./coverage/lcov.info | coveralls"
},
"proxy": "http://localhost:4000",
"proxy": "http://localhost:5000",
"eslintConfig": {
"extends": [
"react-app",
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ serviceWorkerRegistration.register();
reportWebVitals();

// Init Firebase analytics
(window as any).firebase.analytics();
(window as any)?.firebase?.analytics();

0 comments on commit 580f920

Please sign in to comment.