turndown 7.1.2 → 7.1.3

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.
package/dist/turndown.js CHANGED
@@ -609,7 +609,7 @@ var TurndownService = (function () {
609
609
  try {
610
610
  document.implementation.createHTMLDocument('').open();
611
611
  } catch (e) {
612
- if (window.ActiveXObject) useActiveX = true;
612
+ if (root.ActiveXObject) useActiveX = true;
613
613
  }
614
614
  return useActiveX
615
615
  }
@@ -608,7 +608,7 @@ function shouldUseActiveX () {
608
608
  try {
609
609
  document.implementation.createHTMLDocument('').open();
610
610
  } catch (e) {
611
- if (window.ActiveXObject) useActiveX = true;
611
+ if (root.ActiveXObject) useActiveX = true;
612
612
  }
613
613
  return useActiveX
614
614
  }
@@ -606,7 +606,7 @@ function shouldUseActiveX () {
606
606
  try {
607
607
  document.implementation.createHTMLDocument('').open();
608
608
  } catch (e) {
609
- if (window.ActiveXObject) useActiveX = true;
609
+ if (root.ActiveXObject) useActiveX = true;
610
610
  }
611
611
  return useActiveX
612
612
  }
@@ -612,7 +612,7 @@
612
612
  try {
613
613
  document.implementation.createHTMLDocument('').open();
614
614
  } catch (e) {
615
- if (window.ActiveXObject) useActiveX = true;
615
+ if (root.ActiveXObject) useActiveX = true;
616
616
  }
617
617
  return useActiveX
618
618
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "turndown",
3
3
  "description": "A library that converts HTML to Markdown",
4
- "version": "7.1.2",
4
+ "version": "7.1.3",
5
5
  "author": "Dom Christie",
6
6
  "main": "lib/turndown.cjs.js",
7
7
  "module": "lib/turndown.es.js",