@ -341,6 +341,11 @@ define([
if (shouldImport) {
setMergeAnonDrive();
}
var l = Util.find(rt.proxy, ['settings', 'general', 'language']);
var LS_LANG = "CRYPTPAD_LANG";
if (l) {
localStorage.setItem(LS_LANG, l);
return void LocalStore.login(userHash, uname, function () {
cb(void 0, res);
});
@ -63,7 +63,10 @@ define([
common.setLanguage = function (l, cb) {
cb();
postMessage("SET_ATTRIBUTE", {
attr: ['general', 'language'],
value: l
}, cb);
};
common.makeNetwork = function (cb) {