Use the same network for the apps and the file store

This commit is contained in:
yflory
2017-01-06 13:52:53 +01:00
parent 004d4a16fe
commit 1e70af0c16
6 changed files with 32 additions and 16 deletions

View File

@@ -43,6 +43,14 @@ define([
if (USE_FS_STORE && !legacy && fsStore) { return fsStore; }
throw new Error("Store is not ready!");
};
var getNetwork = common.getNetwork = function () {
if (USE_FS_STORE && fsStore) {
if (fsStore.getProxy() && fsStore.getProxy().info) {
return fsStore.getProxy().info.network;
}
}
return;
};
var getWebsocketURL = common.getWebsocketURL = function () {
if (!Config.websocketPath) { return Config.websocketURL; }