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

Commit 67d75f16 authored by Robert Ly's avatar Robert Ly
Browse files

fix docs.js bug where changeApiLevel is getting called

Change-Id: Ic250afc792d7e4174bd987ce31df384dad3831ca
parent 8fa5351c
Loading
Loading
Loading
Loading
+10 −9
Original line number Diff line number Diff line
@@ -1848,16 +1848,17 @@ function escapeHTML(string) {
/* ######################################################## */

/* Initialize some droiddoc stuff, but only if we're in the reference */
if ((location.pathname.indexOf("/reference") &&
  !location.pathname.indexOf("/reference-gms/packages.html") &&
  !location.pathname.indexOf("/reference-gcm/packages.html") &&
  !location.pathname.indexOf("/reference/com/google")) == 0) {
if (location.pathname.indexOf("/reference")) {
  if(!location.pathname.indexOf("/reference-gms/packages.html")
    && !location.pathname.indexOf("/reference-gcm/packages.html")
    && !location.pathname.indexOf("/reference/com/google") == 0) {
    $(document).ready(function() {
      // init available apis based on user pref
      changeApiLevel();
      initSidenavHeightResize()
      });
  }
}

var API_LEVEL_COOKIE = "api_level";
var minLevel = 1;