Jetpack comment iframe height calculation problem
-
Hi,
I’m experiencing problems with a calculation of a height of a jetpack comment iframe (id=”jetpack_remote_comment”).
Console shows an issues with an origin:
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://varme.sk') does not match the recipient window's origin ('http://varme.dennikn.sk').
I’ve found an issue in execution of:
parent.postMessage( height, parentOrigin );
In this method:
HighlanderComments._JetpackResizeCallback = function() { var currentHeight = heightContainer.outerHeight(); if ( currentHeight == height ) { return; } height = currentHeight; parent.postMessage( height, parentOrigin ); };
This issue has arisen after our partner (http://dennikn.sk) joined our project and we changed the domain of the site from http://varme.sk to a sub-domain http://varme.dennikn.sk . Everything seems to be working properly except this height issue.
You can spot this behavior e.g. here:
http://varme.dennikn.sk/recipe/orechova-kocka/#reply-titleDo you have any idea, how to fix this?
Thank you
Varme
- The topic ‘Jetpack comment iframe height calculation problem’ is closed to new replies.