MCPcopy Index your code
hub / github.com/codecombat/codecombat / activateTab

Method activateTab

app/core/Router.js:796–803  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

794 }
795
796 activateTab () {
797 const base = _.string.words(document.location.pathname.slice(1), '/')[0]
798 try {
799 return $(`ul.nav li.${base}`).addClass('active')
800 } catch (e) {
801 return console.warn(e) // Possibly a hash that would not match a valid element
802 }
803 }
804
805 _trackPageView () {
806 return (window.tracker != null ? window.tracker.trackPageView() : undefined)

Callers 1

openViewMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected