Skip to content

Commit

Permalink
Update Images MIME types (#39)
Browse files Browse the repository at this point in the history
* Update supportedImagesMimeTypes

* Update CHANGELOG.md
  • Loading branch information
xTEddie committed Dec 12, 2023
1 parent 604f5d2 commit 67e3e57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
All notable changes to this project will be documented in this file.

## [Unreleased]
### Added
- Add `image/heic` & `image/webp` as part of `supportedImagesMimeTypes`

## [0.1.6] - 2023-11-17
### Added
Expand Down Expand Up @@ -32,4 +34,4 @@ All notable changes to this project will be documented in this file.
- Prevent multiple iframes being loaded
- Add `dispose()` on `FramedClient`
- Use `amsEndpoint` property by default
- Add `silentError` option
- Add `silentError` option
4 changes: 2 additions & 2 deletions src/API.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ interface AMSHeaders {
[HeadersName.AcceptEncoding]?: string;
}

const defaultSupportedImagesMimeTypes = ["image/jpeg", "image/png", "image/gif"];
const defaultSupportedImagesMimeTypes = ["image/jpeg", "image/png", "image/gif", "image/heic", "image/webp"];

const patchChatToken = (chatToken: OmnichannelChatToken) => {
// Temporary
Expand Down Expand Up @@ -261,4 +261,4 @@ export default {
uploadDocument,
getViewStatus,
getView
};
};

0 comments on commit 67e3e57

Please sign in to comment.