forked from MapComplete/MapComplete
Fix: fix loading images for CSP, fix #2161
This commit is contained in:
parent
349c6538a0
commit
2569d0cb66
3 changed files with 5 additions and 4 deletions
|
@ -700,7 +700,7 @@ export default class SpecialVisualizations {
|
|||
{
|
||||
funcName: "image_upload",
|
||||
docs: "Creates a button where a user can upload an image to IMGUR",
|
||||
needsUrls: [Imgur.apiUrl],
|
||||
needsUrls: [Imgur.apiUrl, ...Imgur.supportingUrls],
|
||||
args: [
|
||||
{
|
||||
name: "image-key",
|
||||
|
@ -1098,7 +1098,7 @@ export default class SpecialVisualizations {
|
|||
defaultValue: "id",
|
||||
},
|
||||
],
|
||||
needsUrls: [Imgur.apiUrl],
|
||||
needsUrls: [Imgur.apiUrl, ...Imgur.supportingUrls],
|
||||
|
||||
constr: (state, tags, args) => {
|
||||
const id = tags.data[args[0] ?? "id"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue