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