forked from openkylin/platform_build
am 64b879ac: docs: fix js error when there\'s no api level cookie saved.
Merge commit '64b879ac5bbabe0489869f76b3a20f26aca6ce22' into eclair * commit '64b879ac5bbabe0489869f76b3a20f26aca6ce22': docs: fix js error when there's no api level cookie saved.
This commit is contained in:
commit
ec4194ef1b
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue