@microsoft/applicationinsights-react-js 3.2.2-nightly.2111-06 → 3.2.2-nightly.2111-10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - React Plugin, 3.2.2-nightly.2111-06
2
+ * Application Insights JavaScript SDK - React Plugin, 3.2.2-nightly.2111-10
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -1839,9 +1839,16 @@
1839
1839
  };
1840
1840
  ReactPlugin.prototype.addHistoryListener = function (history) {
1841
1841
  var _this = this;
1842
- var locationListener = function (location, action) {
1842
+ var locationListener = function (arg) {
1843
+ var locn = null;
1844
+ if ("location" in arg) {
1845
+ locn = arg["location"];
1846
+ }
1847
+ else {
1848
+ locn = arg;
1849
+ }
1843
1850
  setTimeout(function () {
1844
- var pageViewTelemetry = { uri: location.pathname };
1851
+ var pageViewTelemetry = { uri: locn.pathname };
1845
1852
  _this.trackPageView(pageViewTelemetry);
1846
1853
  }, 500);
1847
1854
  };