Commit 55344a0b authored by Thierry BUGEAT's avatar Thierry BUGEAT

Update Aol Token every 14mn only if account is connected

parent b72cd486
......@@ -2354,7 +2354,9 @@
// Due to quick expiration time (1h), Aol token is
// actualized every 14mn.
setInterval(function() {
if (navigator.onLine) {aolreader.updateToken();}
if ((navigator.onLine) && (params.accounts.aolreader.logged)) {
aolreader.updateToken();
}
}, (60000 * 14));
document.body.addEventListener('AolReader.login.done', function(response){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment