KEYCLOAK-3606

keycloak.js calls localStorage.key(localStorage.length) indirectly
This commit is contained in:
Stian Thorgersen 2016-10-28 10:02:11 +02:00
parent 69dddfa73a
commit 5f58c96258

View file

@ -1049,7 +1049,7 @@
function clearExpired() {
var time = new Date().getTime();
for (var i = 1; i <= localStorage.length; i++) {
for (var i = 0; i < localStorage.length; i++) {
var key = localStorage.key(i);
if (key && key.indexOf('kc-callback-') == 0) {
var value = localStorage.getItem(key);