MCPcopy Create free account
hub / github.com/Yaffle/EventSource / getURL

Function getURL

tests/tests.js:386–388  ·  view source on GitHub ↗
(protocol, credentials)

Source from the content-addressed store, hash-verified

384
385 var otherTests = function () {
386 var getURL = function (protocol, credentials) {
387 return protocol + "//" + credentials + location.hostname + ":" + location.port + location.pathname.split("/").slice(0, -1).join("/") + "/events";
388 };
389 var url4CORS = getURL(location.protocol === "https:" ? "http:" : "https");
390 var urlWithAuthorization = getURL(location.protocol, "user012:pass012");
391

Callers 1

otherTestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected