Expose iframe resizer version mismatch to the parent
Feature Request
Is your feature request related to a problem? Please describe.
The parent and child iframe resizer can use different versions. Currently, a version mismatch is only printed to the console, which makes it difficult for applications to detect and react to it programmatically. In our case, nobody monitors the browser console, so these mismatches can go unnoticed.
Describe the solution you'd like
Expose a hook, callback, or message when a version mismatch is detected between the parent and child iframe resizer.
Ideally, the notification would include both versions, for example:
parentVersionchildVersion
An event or callback such as versionMismatch would allow the parent application to react to the mismatch and, for example, send the information to its logging/monitoring system.
Describe alternatives you've considered
We currently rely on the message printed to the browser console, but this isn't suitable for application-level logging or monitoring.
I'm open to either a callback/hook or a postMessage-based event, depending on what fits the existing API best.
Additional context
The request is specifically about version mismatches between the parent and child iframe resizer libraries.
The main goal is to make the mismatch observable programmatically instead of only logging it to the console.
Source: davidjbradshaw/iframe-resizer