MCPcopy Create free account
hub / github.com/codecombat/codecombat / teacherProxyRoute

Function teacherProxyRoute

app/core/Router.js:23–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21// This can be wrapped around existing route functions,
22// to restrict the new teacher dashboard only for admins (using flag newTeacherDashboardActive)
23const teacherProxyRoute = originalRoute => function () {
24 // if sessionStorage.getItem('newTeacherDashboardActive') == 'active'
25 return go('core/SingletonAppVueComponentView').apply(this, arguments)
26}
27// originalRoute.apply(@, arguments)
28
29const redirect = path => function () {

Callers 1

initClassMethod · 0.85

Calls 2

goFunction · 0.85
applyMethod · 0.80

Tested by

no test coverage detected