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

Commit 0f429ebe authored by Scott Main's avatar Scott Main
Browse files

docs: fix bug in script for tab cookies

Change-Id: I09a49764f66673b3f55032158efd44c228832e8f
parent 1d42360a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -425,11 +425,11 @@ function loadLast(cookiePath) {

$(window).unload(function(){
  var path = getBaseUri(location.pathname);
  if ((path.indexOf("/reference/") != -1) || (path.indexOf("/training/") != -1)) {
  if (path.indexOf("/reference/") != -1) {
    writeCookie("lastpage", path, "reference", null);
  } else if (path.indexOf("/guide/") != -1) {
    writeCookie("lastpage", path, "guide", null);
  } else if (path.indexOf("/resources/") != -1) {
  } else if ((path.indexOf("/resources/") != -1) || (path.indexOf("/training/") != -1)) {
    writeCookie("lastpage", path, "resources", null);
  }
});