@microsoft/applicationinsights-channel-js 2.7.3-nightly.2112-07 → 2.7.3-nightly.2112-08

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
- * Microsoft Application Insights JavaScript SDK Channel, 2.7.3-nightly.2112-07
2
+ * Microsoft Application Insights JavaScript SDK Channel, 2.7.3-nightly.2112-08
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Channel, 2.7.3-nightly.2112-07
2
+ * Application Insights JavaScript SDK - Channel, 2.7.3-nightly.2112-08
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -661,6 +661,7 @@
661
661
 
662
662
  var strWindow = "window";
663
663
  var strDocument = "document";
664
+ var strDocumentMode = "documentMode";
664
665
  var strNavigator = "navigator";
665
666
  var strConsole = "console";
666
667
  var strJSON = "JSON";
@@ -753,7 +754,8 @@
753
754
  }
754
755
  var ua = (userAgentStr || "").toLowerCase();
755
756
  if (strContains(ua, strMsie)) {
756
- return parseInt(ua.split(strMsie)[1]);
757
+ var doc = getDocument() || {};
758
+ return Math.max(parseInt(ua.split(strMsie)[1]), (doc[strDocumentMode] || 0));
757
759
  }
758
760
  else if (strContains(ua, strTrident)) {
759
761
  var tridentVer = parseInt(ua.split(strTrident)[1]);
@@ -2830,7 +2832,7 @@
2830
2832
  }
2831
2833
  }
2832
2834
  var EnvelopeCreator = {
2833
- Version: "2.7.3-nightly.2112-07"
2835
+ Version: "2.7.3-nightly.2112-08"
2834
2836
  };
2835
2837
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
2836
2838
  EnvelopeCreatorInit(logger, telemetryItem);