(path)
| 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); |