Extra Stat collection (#407)
* Cleaned up error interceptor to avoid sending auth errors (when a 500 occurs) to sentry as auth errors aren't issues. * Added extra stat collection * Fixed a bad gitignore which ignored anything in a stats directory
This commit is contained in:
parent
b9a06d3586
commit
b11bb0e3b5
18 changed files with 64 additions and 57 deletions
|
|
@ -1,21 +0,0 @@
|
|||
import * as Bowser from "bowser";
|
||||
import { version } from '../../../../package.json';
|
||||
import { ClientInfo } from "src/app/_models/client-info";
|
||||
import { DetailsVersion } from "src/app/_models/details-version";
|
||||
|
||||
const getClientInfo = (): ClientInfo => {
|
||||
|
||||
const screenResolution = `${window.screen.width} x ${window.screen.height}`;
|
||||
|
||||
const browser = Bowser.getParser(window.navigator.userAgent);
|
||||
|
||||
return {
|
||||
os: browser.getOS() as DetailsVersion,
|
||||
browser: browser.getBrowser() as DetailsVersion,
|
||||
platformType: browser.getPlatformType(),
|
||||
kavitaUiVersion: version,
|
||||
screenResolution
|
||||
};
|
||||
}
|
||||
|
||||
export { getClientInfo };
|
||||
Loading…
Add table
Add a link
Reference in a new issue