You could use mw.config.get( 'GlobalNotification' ). We've done this elsewhere instead of referencing using window.