2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 19:09:01 +00:00

incr: add platform when report issue

This commit is contained in:
18alantom 2022-07-07 17:59:06 +05:30 committed by Alan
parent d268255c4a
commit a200753063
3 changed files with 3 additions and 0 deletions

View File

@ -225,6 +225,7 @@ export class Fyo {
isDevelopment: false,
skipTelemetryLogging: false,
appVersion: '',
platform: '',
};
}

View File

@ -179,6 +179,7 @@ function getIssueUrlQuery(errorLogObj?: ErrorLog): string {
}
body.push(`**Version**: \`${fyo.store.appVersion}\``);
body.push(`**Platform**: \`${fyo.store.platform}\``);
body.push(`**Path**: \`${router.currentRoute.value.fullPath}\``);
const url = [baseUrl, `body=${body.join('\n')}`].join('&');

View File

@ -30,6 +30,7 @@ import { setLanguageMap } from './utils/language';
fyo.store.isDevelopment = isDevelopment;
fyo.store.appVersion = version;
fyo.store.platform = platform;
const platformName = getPlatformName(platform);
setOnWindow(isDevelopment);