Skip to content

Adding iframe-Resize to disconnected iframe fails, even after it is add to the page. #1549

@maximedasilva

Description

@maximedasilva

Describe the bug
In no logs mode (log: -1), some logs are still presents, even if they're useful to debug, they should be absent when the configuration explicitely sets logging to be disabled.

To Reproduce

  1. Set up iframe-resizer with the log: -1 option.
  2. Introduce an error within the setup
  3. Observe the browser console.

I set up a minimal repro https://codesandbox.io/p/devbox/prdpzk which is dumb but explains the point

Expected behavior
The log: -1 option should globally and completely suppress all console output and internal logging related to the library

Screenshots

Image

Desktop (please complete the following information):

  • OS: Mac OS 26.0.1
  • Browser: chrome (v 141.0.7390.108)
  • Version: 5.5.7

Additional context
this already has been discussed here :
#1526

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions