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

Function getProductUrl

app/core/utils.js:1693–1702  ·  view source on GitHub ↗
(product, url)

Source from the content-addressed store, hash-verified

1691}
1692
1693const getProductUrl = function (product, url) {
1694 if ((product !== 'COCO') && (product !== 'OZ')) {
1695 return url
1696 }
1697 const hostVal = window.location.origin
1698 if (product === 'OZ') {
1699 return `${hostVal}/ozaria${url}`
1700 }
1701 return url
1702}
1703
1704const allowedLanguages = ({
1705 [OZARIA]: ['javascript', 'python'],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected