* @return {Promise}
*/
IconSystemFontawesome.prototype.init = function() {
+ var currTheme = M.cfg.theme;
+
if (staticMap) {
return $.when(this);
}
- var map = LocalStorage.get('core/iconmap-fontawesome');
+ var map = LocalStorage.get('core_iconsystem/theme/' + currTheme + '/core/iconmap-fontawesome');
if (map) {
map = JSON.parse(map);
}
$.each(map, function(index, value) {
staticMap[value.component + '/' + value.pix] = value.to;
});
- LocalStorage.set('core/iconmap-fontawesome', JSON.stringify(staticMap));
+ LocalStorage.set('core_iconsystem/theme/' + currTheme + '/core/iconmap-fontawesome', JSON.stringify(staticMap));
return this;
}.bind(this));
};