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

Function ozBaseURL

app/core/utils.js:1608–1617  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1606}
1607
1608const ozBaseURL = function () {
1609 if (isOzaria) {
1610 return ''
1611 }
1612 if (!application.isProduction()) {
1613 return `${document.location.protocol}//ozaria.com`
1614 }
1615 // We are on codecombat domain.
1616 return `${document.location.protocol}//${document.location.host}`.replace(CODECOMBAT, OZARIA).replace(CODECOMBAT_CHINA, OZARIA_CHINA)
1617}
1618
1619const capitalizeFirstLetter = str => (str[0] || '').toUpperCase() + str.slice(1)
1620

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected