davidjbradshaw / iframe-resizer

Keep iFrames sized to their content.

Home Page:https://iframe-resizer.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not Working in vue.js

proidit opened this issue · comments

commented

page hosting the iFrames:
import * as Resize from 'iframe-resizer/js/iframeResizer.contentWindow';
Vue.use(Resize);

Parent page:
<script src="node_modules/iframe-resizer/js/iframeResizer.min.js"></script>
<script>
iFrameResize({ log: true }, '#player_iframe')
</script>

No errors in javascript console

Parent warning:
iframeResizer.js:144 [iFrameSizer][Host page: player_iframe] IFrame has not responded within 5 seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning.

What version? Can you try the one I released yesterday, I hope I fixed this already

commented

sorry. already resolved with personal source code wuthout external library