Don't send defaults if not displaying network

This commit is contained in:
Pavel Djundik 2017-11-15 20:43:38 +02:00
parent adab03f730
commit 01f524b7c5

View file

@ -461,7 +461,6 @@ function getClientConfiguration() {
"lockNetwork",
"displayNetwork",
"useHexIp",
"defaults",
"themes",
"prefetch",
]);
@ -471,6 +470,10 @@ function getClientConfiguration() {
config.gitCommit = Helper.getGitCommit();
config.themes = themes.getAll();
if (config.displayNetwork) {
config.defaults = Helper.config.defaults;
}
return config;
}