Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1cb43f69 authored by Dirk Dougherty's avatar Dirk Dougherty Committed by Dirk Dougherty
Browse files

AI 150389: Fix handling of cookie writes for intl pages.

  BUG=1790234

Automated import of CL 150389
parent 233bc0b8
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -175,7 +175,8 @@ function resizeHeight() {
  devdocNav.css({height:sidenav.css("height")});
  $("#nav-tree").css({height:swapperHeight + "px"});
  
  var section = location.pathname.substring(1,location.pathname.indexOf("/",1));
  var basePath = getBaseUri(location.pathname);
  var section = basePath.substring(1,basePath.indexOf("/",1));
  writeCookie("height", resizePackagesNav.css("height"), section, null);
}

@@ -192,7 +193,8 @@ function resizeWidth() {
  classesNav.css({width:sidenavWidth});
  $("#packages-nav").css({width:sidenavWidth});
  
  var section = location.pathname.substring(1,location.pathname.indexOf("/",1));
  var basePath = getBaseUri(location.pathname);
  var section = basePath.substring(1,basePath.indexOf("/",1));
  writeCookie("width", sidenavWidth, section, null);
}