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

Function isCoco

app/views/HomeView.js:31–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29const fetchJson = require('core/api/fetch-json')
30const DOMPurify = require('dompurify')
31const isCoco = function () {
32 if (window.location.pathname.startsWith('/ozaria')) {
33 return false
34 }
35 return utils.isCodeCombat
36}
37
38const PRODUCT_SUFFIX = isCoco() ? 'coco' : 'ozar'
39module.exports = (HomeView = (function () {

Callers 7

HomeView.jsFile · 0.85
initClassMethod · 0.85
onClickTeacherButtonMethod · 0.85
homePageEventMethod · 0.85
onClickAnchorMethod · 0.85
onCarouselDirectMoveMethod · 0.85
afterRenderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected