This is useful in instances where there are redirects and the final URL that the iframe is redirected to, assuming the URL is the same domain/port/scheme as the parent. The reference to the iframe allows for other iframe manipulations as well, reading the URL was just useful for my specific use case.
Just realized this would prevent user parameters from being passed to the user specified function in onLoad prop. I'm closing this pull request as it may break how people are already using the onLoad prop.
This minor change allows the function referenced by the onLoad prop to receive a reference to the iframe easily.
e.g.
This is useful in instances where there are redirects and the final URL that the iframe is redirected to, assuming the URL is the same domain/port/scheme as the parent. The reference to the iframe allows for other iframe manipulations as well, reading the URL was just useful for my specific use case.