MCPcopy
hub / github.com/jabbany/CommentCoreLibrary / resolve

Function resolve

experimental/scripting/deprecated/bscript.js:64–69  ·  view source on GitHub ↗
(url, base_url)

Source from the content-addressed store, hash-verified

62 CCLScripting.createWorkerFromCode = function(code){
63 window.URL = window.URL || window.webkitURL;
64 var resolve = function(url, base_url) {
65 var p = base_url.split("/");
66 p.pop();
67 p.push(url);
68 return p.join("/");
69 }
70 var bridge = "var BASE_URL = '" + resolve("",document.URL) + "';" +
71 "importScripts('" + resolve("api.worker.js", document.URL ) + "');";
72 var cleanup = ";;/**/if(Runtime && Runtime.cleanup) { Runtime.cleanup(); }";

Callers 3

CommentProvider.jsFile · 0.85
Promises.jsFile · 0.85
bscript.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected