diff --git a/fyo/index.ts b/fyo/index.ts index 9afec5c3..877e5e77 100644 --- a/fyo/index.ts +++ b/fyo/index.ts @@ -225,6 +225,7 @@ export class Fyo { isDevelopment: false, skipTelemetryLogging: false, appVersion: '', + platform: '', }; } diff --git a/src/errorHandling.ts b/src/errorHandling.ts index 194445cb..f10a9f4a 100644 --- a/src/errorHandling.ts +++ b/src/errorHandling.ts @@ -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('&'); diff --git a/src/renderer.ts b/src/renderer.ts index e1d1b1ad..122a288d 100644 --- a/src/renderer.ts +++ b/src/renderer.ts @@ -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);