diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-04-02 19:39:03 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-04-02 19:39:03 -0400 |
commit | b4958eac84339dd7a88c964a9c52e89481048f55 (patch) | |
tree | dc8eb709e7b7910f62e1f0727c3d77a57d4bef38 /src | |
parent | bb351bcf0a56be9708c6c833c8023300e26223c1 (diff) |
supported uploads of images ending with .webp
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/CollectionView.tsx | 6 | ||||
-rw-r--r-- | src/client/views/nodes/ImageBox.tsx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx index b6ce2f3a9..df1770ffe 100644 --- a/src/client/views/collections/CollectionView.tsx +++ b/src/client/views/collections/CollectionView.tsx @@ -429,9 +429,9 @@ export class CollectionView extends Touchable<FieldViewProps> { Document={facetCollection} backgroundColor={this.filterBackground} fieldKey={`${this.props.fieldKey}-filter`} - moveDocument={(doc: Doc) => false} - removeDocument={(doc: Doc) => false} - addDocument={(doc: Doc) => false} /> + moveDocument={returnFalse} + removeDocument={returnFalse} + addDocument={returnFalse} /> </div> </div>; } diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx index e710b3075..00057055f 100644 --- a/src/client/views/nodes/ImageBox.tsx +++ b/src/client/views/nodes/ImageBox.tsx @@ -225,7 +225,7 @@ export class ImageBox extends DocAnnotatableComponent<FieldViewProps, ImageDocum return url.href; } else if (url.href.indexOf(window.location.origin) === -1) { return Utils.CorsProxy(url.href); - } else if (!/\.(png|jpg|jpeg|gif)$/.test(lower)) { + } else if (!/\.(png|jpg|jpeg|gif|webp)$/.test(lower)) { return url.href;//Why is this here } const ext = path.extname(url.href); |