mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
34 lines
708 B
JavaScript
34 lines
708 B
JavaScript
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
|
|
|
/**
|
|
* @constructor
|
|
*/
|
|
function AbstractCacheStorage()
|
|
{
|
|
this.bCapaGravatar = RL.capa(Enums.Capa.Gravatar);
|
|
}
|
|
|
|
/**
|
|
* @type {Object}
|
|
*/
|
|
AbstractCacheStorage.prototype.oServices = {};
|
|
|
|
/**
|
|
* @type {boolean}
|
|
*/
|
|
AbstractCacheStorage.prototype.bCapaGravatar = false;
|
|
|
|
AbstractCacheStorage.prototype.clear = function ()
|
|
{
|
|
this.bCapaGravatar = !!this.bCapaGravatar; // TODO
|
|
};
|
|
|
|
/**
|
|
* @param {string} sEmail
|
|
* @return {string}
|
|
*/
|
|
AbstractCacheStorage.prototype.getUserPic = function (sEmail, fCallback)
|
|
{
|
|
sEmail = Utils.trim(sEmail);
|
|
fCallback(this.bCapaGravatar && '' !== sEmail ? RL.link().avatarLink(sEmail) : '', sEmail);
|
|
};
|