Use user object as default store in file manager

This commit is contained in:
yflory
2016-12-20 17:27:45 +01:00
parent 4aed585574
commit c359c27997
7 changed files with 68 additions and 32 deletions

View File

@@ -432,7 +432,9 @@ define([
cb(err, data);
});
};
var setLSAttribute = common.setLSAttribute = function (attr, value) {
localStorage[attr] = value;
};
// STORAGE
var getPadAttribute = common.getPadAttribute = function (attr, cb, legacy) {
@@ -445,6 +447,9 @@ define([
cb(err, data);
});
};
var getLSAttribute = common.getLSAttribute = function (attr) {
return localStorage[attr];
};
// STORAGE