feat: add logrocket

This commit is contained in:
tiddlygit-test 2021-02-27 23:46:23 +08:00
parent 95b4691dc0
commit f4eecec1be
4 changed files with 11 additions and 1 deletions

View file

@ -6,5 +6,6 @@ Still, the app does use third party services that may collect information used t
- G Suite for email and business tools.
- GitHub for distributing the software.
- [logrocket](https://app.logrocket.com/kkauk7/tiddlygit-desktop/) to collect debug info and find bugs
This privacy policy is subject to change without notice and was last updated on 2020-07-20. If you have any questions feel free to create a GitHub issue.
This privacy policy is subject to change without notice and was last updated on 2021-02-27. If you have any questions feel free to create a GitHub issue.

5
package-lock.json generated
View file

@ -13465,6 +13465,11 @@
"triple-beam": "^1.3.0"
}
},
"logrocket": {
"version": "1.0.14",
"resolved": "https://registry.npmjs.org/logrocket/-/logrocket-1.0.14.tgz",
"integrity": "sha512-notwwiIiXOmWSKQDsW8UrFJPu81u9rd6YaIFBmx6uF0XtXXwNQ+Mvteh5WHdABWcQ2nN4I7QkQrCAocYDx7OVg=="
},
"longest": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz",

View file

@ -93,6 +93,7 @@
"is-url": "1.2.4",
"jimp": "0.16.1",
"lodash": "4.17.20",
"logrocket": "^1.0.14",
"menubar": "9.0.2",
"node-fetch": "2.6.1",
"reflect-metadata": "^0.1.13",

View file

@ -3,6 +3,7 @@
import React from 'react';
import ReactDOM from 'react-dom';
import i18n from 'i18next';
import LogRocket from 'logrocket';
import CssBaseline from '@material-ui/core/CssBaseline';
import { I18nextProvider } from 'react-i18next';
@ -47,6 +48,8 @@ const App = (): JSX.Element => {
};
async function runApp(): Promise<void> {
LogRocket.init('kkauk7/tiddlygit-desktop');
void window.service.window.setVisualZoomLevelLimits(1, 1);
if (window.meta.windowName === WindowNames.editWorkspace) {
const { workspaceID } = window.meta as WindowMeta[WindowNames.editWorkspace];