Bug 697975 - Don't show the first-run animation in tablet mode [r=mfinkle, a=lmandel]
--- a/mobile/chrome/content/aboutHome.xhtml
+++ b/mobile/chrome/content/aboutHome.xhtml
@@ -405,17 +405,17 @@
getChromeWin().Services.obs.removeObserver(updateAddons, "recommended-addons-cache-updated");
}
function startDiscovery() {
let win = getChromeWin();
// If a sidebar is completely open, just bail
let [leftWidth, rightWidth] = win.Browser.computeSidebarVisibility();
- if (leftWidth == 1 || rightWidth == 1) {
+ if (leftWidth == 1 || rightWidth == 1 || win.Util.isTablet()) {
endDiscovery();
return;
}
let doc = win.document;
let broadcaster = doc.getElementById("bcast_uidiscovery");
doc.addEventListener("animationend", endDiscovery, false);