Commits

Satyr Murky committed 0d1e540

PreviewBrowser: Fixed resizeContainer.

Comments (0)

Files changed (1)

ubiquity/modules/preview_browser.js

   this.__previewBrowserUrlLoadedCallback = null;
 
   !function resizeContainer() {
-    var doc = browser.contentDocument;
-    if (doc)
-      browser.parentNode.style.height =
-        (doc.body || doc.documentElement).clientHeight + "px";
+    var doc = browser.contentDocument || 0
+      , lmn = doc.body || doc.documentElement;
+    if (lmn) browser.parentNode.style.height = lmn.clientHeight + "px";
     Utils.setTimeout(resizeContainer, 500);
   }();