fix(config) when disabled error occures on second call

This commit is contained in:
coderaiser 2017-06-21 13:56:43 +03:00
parent 56a359a823
commit da8281e387

View file

@ -27,8 +27,12 @@ CloudCmd.Config = ConfigProto;
let Loading = true;
function ConfigProto() {
const noop = () => {};
if (!CloudCmd.config('configDialog'))
return;
return {
show: noop
};
Loading = true;