pdf_editor_aleon35_react_plugin
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -15,2 +15,4 @@ "use strict"; | ||
var done = (0, _react.useRef)(false); | ||
var iframeLoadedSuccessfully = (0, _react.useRef)(false); // Add this ref to keep track of iframe's load state | ||
var createIframe = function createIframe() { | ||
@@ -35,2 +37,3 @@ var iframe = document.createElement('iframe'); | ||
iframe.onload = function () { | ||
iframeLoadedSuccessfully.current = true; | ||
// @ts-ignore | ||
@@ -46,3 +49,3 @@ iframe.contentWindow.postMessage({ | ||
var handleVisibilityChange = function handleVisibilityChange() { | ||
if (!document.hidden) { | ||
if (!document.hidden && !iframeLoadedSuccessfully.current) { | ||
var iframe = document.getElementById('webviewer-1'); | ||
@@ -49,0 +52,0 @@ if (iframe) { |
{ | ||
"name": "pdf_editor_aleon35_react_plugin", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
564173
167