@instructure/ui-dom-utils 8.9.2-snapshot.3 → 8.9.2-snapshot.4

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.
@@ -22,9 +22,7 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
  function getFrameDocumentSafe(el) {
25
- var _el$contentWindow;
26
-
27
- return el.contentDocument || ((_el$contentWindow = el.contentWindow) === null || _el$contentWindow === void 0 ? void 0 : _el$contentWindow.document) || null;
25
+ return el.contentDocument || null;
28
26
  }
29
27
 
30
28
  export default getFrameDocumentSafe;
@@ -30,9 +30,7 @@ exports.default = void 0;
30
30
  * SOFTWARE.
31
31
  */
32
32
  function getFrameDocumentSafe(el) {
33
- var _el$contentWindow;
34
-
35
- return el.contentDocument || ((_el$contentWindow = el.contentWindow) === null || _el$contentWindow === void 0 ? void 0 : _el$contentWindow.document) || null;
33
+ return el.contentDocument || null;
36
34
  }
37
35
 
38
36
  var _default = getFrameDocumentSafe;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-dom-utils",
3
- "version": "8.9.2-snapshot.3+ddc7880d5",
3
+ "version": "8.9.2-snapshot.4+bf1e82efc",
4
4
  "description": "A DOM utility library made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -23,13 +23,13 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "8.9.2-snapshot.3+ddc7880d5",
27
- "@instructure/ui-test-utils": "8.9.2-snapshot.3+ddc7880d5"
26
+ "@instructure/ui-babel-preset": "8.9.2-snapshot.4+bf1e82efc",
27
+ "@instructure/ui-test-utils": "8.9.2-snapshot.4+bf1e82efc"
28
28
  },
29
29
  "dependencies": {
30
30
  "@babel/runtime": "^7.13.10",
31
- "@instructure/console": "8.9.2-snapshot.3+ddc7880d5",
32
- "@instructure/shared-types": "8.9.2-snapshot.3+ddc7880d5"
31
+ "@instructure/console": "8.9.2-snapshot.4+bf1e82efc",
32
+ "@instructure/shared-types": "8.9.2-snapshot.4+bf1e82efc"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": ">=16.8 <=17",
@@ -39,5 +39,5 @@
39
39
  "access": "public"
40
40
  },
41
41
  "sideEffects": false,
42
- "gitHead": "ddc7880d5a2f7d4d0596332e8d49cb9b1de68024"
42
+ "gitHead": "bf1e82efccb682510708448efd369eddaa24f74b"
43
43
  }
@@ -23,7 +23,7 @@
23
23
  */
24
24
 
25
25
  function getFrameDocumentSafe(el: HTMLIFrameElement) {
26
- return el.contentDocument || el.contentWindow?.document || null
26
+ return el.contentDocument || null
27
27
  }
28
28
 
29
29
  export default getFrameDocumentSafe