forked from MapComplete/MapComplete
Add binoculars theme, auto reformat everything
This commit is contained in:
parent
38dea806c5
commit
78d6482c88
586 changed files with 115573 additions and 111842 deletions
|
@ -46,7 +46,7 @@ export class ImageCarousel extends Toggle {
|
|||
*/
|
||||
private static CreateImageElement(url: string): BaseUIElement {
|
||||
// @ts-ignore
|
||||
let attrSource : ImageAttributionSource = undefined;
|
||||
let attrSource: ImageAttributionSource = undefined;
|
||||
if (url.startsWith("File:")) {
|
||||
attrSource = Wikimedia.singleton
|
||||
} else if (url.toLowerCase().startsWith("https://commons.wikimedia.org/wiki/")) {
|
||||
|
@ -58,8 +58,8 @@ export class ImageCarousel extends Toggle {
|
|||
} else {
|
||||
return new Img(url);
|
||||
}
|
||||
|
||||
|
||||
return new AttributedImage(url, attrSource)
|
||||
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue