forked from MapComplete/MapComplete
UX: fix #2275
This commit is contained in:
parent
1c7bd21c8d
commit
6e8d6c7bbe
2 changed files with 3 additions and 5 deletions
|
@ -106,15 +106,13 @@ export default class AllImageProviders {
|
|||
|
||||
/**
|
||||
* Given a list of URLs, tries to detect the images. Used in e.g. the comments
|
||||
* @param url
|
||||
*/
|
||||
public static loadImagesFrom(urls: string[]): Store<ProvidedImage[]> {
|
||||
const tags = {
|
||||
id: "na",
|
||||
id: urls.join(";"),
|
||||
}
|
||||
for (let i = 0; i < urls.length; i++) {
|
||||
const url = urls[i]
|
||||
tags["image:" + i] = url
|
||||
tags["image:" + i] = urls[i]
|
||||
}
|
||||
return this.LoadImagesFor(new ImmutableStore(tags))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue