diff --git a/public/js/main.js b/public/js/main.js
index 9b6e53e..7a6ca61 100644
--- a/public/js/main.js
+++ b/public/js/main.js
@@ -16,6 +16,13 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
$(function() {
+ if ( window.location !== window.parent.location ) {
+ // The page is in an iframe, broadcast height
+ setInterval(function() {
+ window.parent.postMessage(document.body.scrollHeight, "*");
+ }, 200);
+ }
+
function App(){
this.mode = ko.observable("file");
this.filesCount = ko.observable(0);