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

Commit ec4194ef authored by Scott Main's avatar Scott Main Committed by Android Git Automerger
Browse files

am 64b879ac: docs: fix js error when there\'s no api level cookie saved.

Merge commit '64b879ac' into eclair

* commit '64b879ac':
  docs: fix js error when there's no api level cookie saved.
parents 32b505d9 64b879ac
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ function buildApiLevelSelector() {
  var maxLevel = SINCE_DATA.length;
  var userApiLevelEnabled = readCookie(API_LEVEL_ENABLED_COOKIE);
  var userApiLevel = readCookie(API_LEVEL_COOKIE);
  userApiLevel = userApiLevel == 0 ? maxLevel : userApiLevel; // If there's no cookie (zero), use the max by default

  if (userApiLevelEnabled == 0) {
    $("#apiLevelSelector").attr("disabled","disabled");