Skip to content

Commit

Permalink
feat: also add browser language to simple meta
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesjo committed Jan 28, 2025
1 parent ac483a5 commit d279f32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/core/error-handler/global-error-handler.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const createErrorAlert = (
if (isWasErrorAlertCreated) {
return;
}
// it seems for whatever reasons, sometimes we get tags in our error which break the html
// it seems for whatever reason, sometimes we get tags in our error which break the html
const errEscaped = _cleanHtml(err);
const githubUrl = getGithubErrorUrl(errEscaped, stackTrace);

Expand Down Expand Up @@ -168,7 +168,7 @@ export const getSimpleMeta = (): string => {
const n = window.navigator;
return `META: SP${getAppVersionStr()} __ ${IS_ELECTRON ? 'Electron' : 'Browser'}${
n.language
}${n.platform} – UA:${n.userAgent}`;
}${n.platform}${n.language}UA:${n.userAgent}`;
};

export const isHandledError = (err: unknown): boolean => {
Expand Down

0 comments on commit d279f32

Please sign in to comment.