@datocms/content-link
Advanced tools
+1
-1
| { | ||
| "name": "@datocms/content-link", | ||
| "version": "0.3.13", | ||
| "version": "0.3.14", | ||
| "description": "DatoCMS visual editing overlays without Vercel dependencies.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -320,4 +320,3 @@ /** | ||
| // Disable key events when inside an iframe | ||
| if (!this.isTopLevelWindow) { | ||
| if (!this.isTopLevelWindowOrInWebPreviewsIframe) { | ||
| return; | ||
@@ -334,4 +333,3 @@ } | ||
| // Disable key events when inside an iframe | ||
| if (!this.isTopLevelWindow) { | ||
| if (!this.isTopLevelWindowOrInWebPreviewsIframe) { | ||
| return; | ||
@@ -394,3 +392,3 @@ } | ||
| private get isTopLevelWindow() { | ||
| private get isTopLevelWindowOrInWebPreviewsIframe() { | ||
| const opener = | ||
@@ -400,4 +398,6 @@ this.document.defaultView ?? | ||
| return opener && opener.parent === opener; | ||
| return ( | ||
| this.webPreviewsPluginConnection || (opener && opener.parent === opener) | ||
| ); | ||
| } | ||
| } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
662011
0.05%