forked from MapComplete/MapComplete
Fix build
This commit is contained in:
parent
191248a1ab
commit
452c1e87ca
1 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ export class FixImages extends DesugaringStep<LayoutConfigJson> {
|
||||||
this._knownImages = knownImages;
|
this._knownImages = knownImages;
|
||||||
}
|
}
|
||||||
|
|
||||||
convert(json: LayoutConfigJson, context: string): { result: LayoutConfigJson, warnings?: [] } {
|
convert(json: LayoutConfigJson, context: string): { result: LayoutConfigJson, warnings?: string[] } {
|
||||||
let url: URL;
|
let url: URL;
|
||||||
try {
|
try {
|
||||||
url = new URL(json.id)
|
url = new URL(json.id)
|
||||||
|
@ -125,7 +125,7 @@ export class FixImages extends DesugaringStep<LayoutConfigJson> {
|
||||||
return {result: json}
|
return {result: json}
|
||||||
}
|
}
|
||||||
|
|
||||||
const warnings = []
|
const warnings: string[] = []
|
||||||
const absolute = url.protocol + "//" + url.host
|
const absolute = url.protocol + "//" + url.host
|
||||||
let relative = url.protocol + "//" + url.host + url.pathname
|
let relative = url.protocol + "//" + url.host + url.pathname
|
||||||
relative = relative.substring(0, relative.lastIndexOf("/"))
|
relative = relative.substring(0, relative.lastIndexOf("/"))
|
||||||
|
|
Loading…
Reference in a new issue