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

Function pathToUrl

app/core/utils.js:602–605  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

600}
601
602const pathToUrl = function (path) {
603 const base = location.protocol + '//' + location.hostname + (location.port && (':' + location.port))
604 return base + path
605}
606
607const extractPlayerCodeTag = function (code) {
608 const unwrappedDefaultCode = __guard__(code.match(/<playercode>\n([\s\S]*)\n *<\/playercode>/), x1 => x1[1])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected