mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 21:05:30 +03:00
Fixed bug in chrome web app version.
This commit is contained in:
parent
59d61c94c0
commit
0920b07088
1 changed files with 4 additions and 2 deletions
|
@ -46,7 +46,7 @@ function setupAnalytics(result, gitChangesetId) {
|
|||
var optOut = !!result.analyticsOptOut;
|
||||
var checkForDebugVersions = !!result.checkForConfiguratorUnstableVersions;
|
||||
|
||||
var debugMode = process.versions['nw-flavor'] === 'sdk';
|
||||
var debugMode = typeof process === "object" && process.versions['nw-flavor'] === 'sdk';
|
||||
|
||||
analytics = new Analytics('UA-123002063-1', userId, 'Betaflight Configurator', getManifestVersion(), gitChangesetId, GUI.operating_system, checkForDebugVersions, optOut, debugMode);
|
||||
|
||||
|
@ -54,7 +54,9 @@ function setupAnalytics(result, gitChangesetId) {
|
|||
analytics.sendException(exception.stack);
|
||||
}
|
||||
|
||||
process.on('uncaughtException', logException);
|
||||
if (typeof process === "object") {
|
||||
process.on('uncaughtException', logException);
|
||||
}
|
||||
|
||||
analytics.sendEvent(analytics.EVENT_CATEGORIES.APPLICATION, 'AppStart', { sessionControl: 'start' });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue