mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 03:06:38 +00:00
New parameter in webview for opt-out analytics
Change-type: patch Changelog-entry: New parameter in webview for opt-out analytics Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@balena.io>
This commit is contained in:
parent
6cb0bdd1a4
commit
6a9b739541
@ -51,6 +51,14 @@ const ETCHER_VERSION_PARAM = 'etcher-version'
|
|||||||
*/
|
*/
|
||||||
const API_VERSION_PARAM = 'api-version'
|
const API_VERSION_PARAM = 'api-version'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary Opt-out analytics search-parameter key
|
||||||
|
* @constant
|
||||||
|
* @private
|
||||||
|
* @type {String}
|
||||||
|
*/
|
||||||
|
const OPT_OUT_ANALYTICS_PARAM = 'optOutAnalytics'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @summary Webview API version
|
* @summary Webview API version
|
||||||
* @constant
|
* @constant
|
||||||
@ -91,6 +99,7 @@ class SafeWebview extends react.PureComponent {
|
|||||||
// We set the version GET parameters here.
|
// We set the version GET parameters here.
|
||||||
url.searchParams.set(ETCHER_VERSION_PARAM, packageJSON.version)
|
url.searchParams.set(ETCHER_VERSION_PARAM, packageJSON.version)
|
||||||
url.searchParams.set(API_VERSION_PARAM, API_VERSION)
|
url.searchParams.set(API_VERSION_PARAM, API_VERSION)
|
||||||
|
url.searchParams.set(OPT_OUT_ANALYTICS_PARAM, !settings.get('errorReporting'))
|
||||||
|
|
||||||
this.entryHref = url.href
|
this.entryHref = url.href
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user