Board Thread:Watercooler/@comment-24757753-20171113135811/@comment-26402117-20180228160949

I believe wgArticlePath is declared everywhere. But on testing wgIsDarkTheme (for source editor - EditPageLayout),  method is usually safer:
 * returns "Uncaught ReferenceError"
 * returns undefined
 * returns null

Using mw.config.get everywhere encourages good habits on Dev, so use that. Should recheck whether my scripts use it.