diff options
author | Vinicius Reis <vinicius.reis@nextcloud.com> | 2022-06-07 00:05:41 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-06-09 11:35:38 +0300 |
commit | f2c95d14cbbc3686c4090676ac311f18306e6e3b (patch) | |
tree | 74cf8e4b39d6512f23e467330a74f967926d378e /src/components/EditorMediaHandler.vue | |
parent | 5abdf58b4843bd8c51e81b05f3cd5e738f205e74 (diff) |
♻️ (#2463): remove duplicated code
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
Diffstat (limited to 'src/components/EditorMediaHandler.vue')
-rw-r--r-- | src/components/EditorMediaHandler.vue | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/components/EditorMediaHandler.vue b/src/components/EditorMediaHandler.vue index 2e9cafa9d..74ba77150 100644 --- a/src/components/EditorMediaHandler.vue +++ b/src/components/EditorMediaHandler.vue @@ -43,6 +43,7 @@ <script> import { getCurrentUser } from '@nextcloud/auth' import { showError } from '@nextcloud/dialogs' +import { mimetypesImages as IMAGE_MIMES } from '../helpers/mime.js' import { useEditorMixin, @@ -56,18 +57,6 @@ import { STATE_UPLOADING, } from './EditorMediaHandler.provider.js' -const IMAGE_MIMES = [ - 'image/png', - 'image/jpeg', - 'image/jpg', - 'image/gif', - 'image/x-xbitmap', - 'image/x-ms-bmp', - 'image/bmp', - 'image/svg+xml', - 'image/webp', -] - export default { name: 'EditorMediaHandler', mixins: [useEditorMixin, useFileMixin, useSyncServiceMixin], |