Introduce a list of image mime types we can support as images
E.g. TIFF will now be handled as a generic file, not image, even though it has mime prefix "image/"
This commit is contained in:
parent
bdc66fa603
commit
4662bcdc7d
10 changed files with 30 additions and 10 deletions
|
|
@ -16,6 +16,8 @@ import Vue3Sanitize from "vue-3-sanitize";
|
|||
import vuetify from './plugins/vuetify';
|
||||
import { Buffer } from 'buffer/'
|
||||
import { createApp, h } from 'vue';
|
||||
import { supportedImageTypes } from '@/plugins/utils';
|
||||
|
||||
globalThis.Buffer = Buffer;
|
||||
|
||||
var defaultOptions = Vue3Sanitize.defaults;
|
||||
|
|
@ -25,6 +27,9 @@ defaultOptions.allowedTags = [];
|
|||
const app = createApp({
|
||||
render: () => h(App)
|
||||
});
|
||||
app.config.globalProperties.supportedImageTypes = supportedImageTypes;
|
||||
|
||||
|
||||
app.use(Vue3Sanitize, defaultOptions);
|
||||
|
||||
app.config.productionTip = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue