Remove the 'enablePinning' config property

This commit is contained in:
yflory
2019-05-27 15:29:36 +02:00
parent bf0fd64a70
commit 28c8834fa4
6 changed files with 4 additions and 24 deletions

View File

@@ -47,8 +47,6 @@ define([
account: {},
};
var PINNING_ENABLED = AppConfig.enablePinning;
// COMMON
common.getLanguage = function () {
return Messages._languageUsed;
@@ -1486,23 +1484,6 @@ define([
console.log('onLogout: disconnect');
postMessage("DISCONNECT");
});
if (PINNING_ENABLED && LocalStore.isLoggedIn()) {
console.log("logged in. pads will be pinned");
postMessage("INIT_RPC", null, waitFor(function (obj) {
console.log('RPC handshake complete');
if (obj.error) { return; }
localStorage[Constants.plan] = obj.plan;
}));
} else if (PINNING_ENABLED) {
console.log('not logged in. pads will not be pinned');
} else {
console.log('pinning disabled');
}
postMessage("INIT_ANON_RPC", null, waitFor(function () {
console.log('Anonymous RPC ready');
}));
}).nThen(function (waitFor) {
if (sessionStorage.createReadme) {
var data = {