Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pdf_editor_aleon35_react_plugin

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdf_editor_aleon35_react_plugin - npm Package Compare versions

Comparing version 1.0.4 to 1.0.6

2

package.json
{
"name": "pdf_editor_aleon35_react_plugin",
"version": "1.0.4",
"version": "1.0.6",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -11,2 +11,3 @@ import { useEffect, useRef } from 'react';

const done = useRef(false);
const iframeLoadedSuccessfully = useRef(false); // Add this ref to keep track of iframe's load state

@@ -35,2 +36,3 @@ const createIframe = () => {

iframe.onload = function() {
iframeLoadedSuccessfully.current = true;
// @ts-ignore

@@ -44,3 +46,3 @@ iframe.contentWindow.postMessage({ file, fileName, tools }, '*');

const handleVisibilityChange = () => {
if (!document.hidden) {
if (!document.hidden && !iframeLoadedSuccessfully.current) {
const iframe = document.getElementById('webviewer-1');

@@ -47,0 +49,0 @@ if (iframe) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc