forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
9cd7ad597d
commit
69ab755f29
520 changed files with 16616 additions and 13483 deletions
|
@ -207,7 +207,7 @@ export default class ScriptUtils {
|
|||
): Promise<{ content: string } | { redirect: string } | "timeout"> {
|
||||
if (url === undefined || url === null) {
|
||||
console.trace("URL is null or undefined")
|
||||
throw ("Invalid url: " + url)
|
||||
throw "Invalid url: " + url
|
||||
}
|
||||
if (url.startsWith("./assets")) {
|
||||
return Promise.resolve({ content: readFileSync("./public/" + url, "utf8") })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue