Skip to content

Commit f0ff2af

Browse files
committed
Merged PR 49125: trackEvent undefined bug in IE fix
trackEvent undefined bug in IE fix
1 parent e071d1c commit f0ff2af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/v2-demo/scripts/telemetry.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const TelemetrySectionName = {
2626
Showcase: "Showcase"
2727
};
2828

29-
function trackEvent(name, properties, flush = false) {
29+
function trackEvent(name, properties, flush) {
3030
if (!_session[SessionKeys.IsTelemetryEnabled]) {
3131
return;
3232
}
@@ -36,7 +36,7 @@ function trackEvent(name, properties, flush = false) {
3636
getAppInsightsInstance().then(function(ai) {
3737
// Normally, the SDK sends data at fixed intervals (typically 30 secs) or whenever buffer is full (typically 500 items).
3838
// https://docs.microsoft.com/en-us/azure/azure-monitor/app/api-custom-events-metrics#flushing-data
39-
ai.trackEvent({ name, properties });
39+
ai.trackEvent({ name: name, properties: properties });
4040
if (flush) {
4141
ai.flush();
4242
}

0 commit comments

Comments
 (0)