Thread:Project:Support desk/mw.config.get/reply

You should use mw.config.get always, it will work whether $wgLegacyJavaScript is set to true or false. As that variable name suggests, accessing wg variables directly is legacy and support for this may be dropped eventually.