evercookie return undefined when get() multi called at the same time
AlvinWei1024 opened this issue · comments
Alvin commented
var ec = new evercookie();
ec.set('testKey', 'testValue');
ec.get('testKey', res => {console.log(res)});
ec.get('testKey', res => {console.log(res)});
when get() multi called at the same time, the result may be undefined
;
Deleted user commented
why you want to get multiple times? just call it once and store it in javascript variable.
Vladimir Marchevsky commented
@syamsoul because you want to store more than one cookie, for example. Using multiple get()
with different keys breaks everything as well.