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

Function cocoBaseURL

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

Source from the content-addressed store, hash-verified

1595const supportEmail = `support@${getProduct()}.com`
1596
1597const cocoBaseURL = function () {
1598 if (isCodeCombat) {
1599 return ''
1600 }
1601 if (!application.isProduction()) {
1602 return `${document.location.protocol}//codecombat.com`
1603 }
1604 // We are on ozaria domain.
1605 return `${document.location.protocol}//${document.location.host}`.replace(OZARIA, CODECOMBAT).replace(OZARIA_CHINA, CODECOMBAT_CHINA)
1606}
1607
1608const ozBaseURL = function () {
1609 if (isOzaria) {

Callers 1

utils.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected