MCPcopy Index your code
hub / github.com/EmulatorJS/EmulatorJS / folderPath

Function folderPath

data/loader.js:13–13  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

11 ];
12
13 const folderPath = (path) => path.substring(0, path.length - path.split("/").pop().length);
14 let scriptPath = (typeof window.EJS_pathtodata === "string") ? window.EJS_pathtodata : folderPath((new URL(document.currentScript.src)).pathname);
15 if (!scriptPath.endsWith("/")) scriptPath += "/";
16 //console.log(scriptPath);

Callers 1

loader.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected