Update app.es6

This commit is contained in:
Artur Paikin 2021-08-02 13:26:02 +01:00 committed by GitHub
parent da6d2b93a3
commit 72810525f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -150,13 +150,13 @@ function uppySetOptions () {
window.uppy.removePlugin(zoomInstance)
}
const boxInstance = window.uppy.getPlugin('Box')
if (opts.Box && !boxInstance) {
window.uppy.use(Box, { target: Dashboard, companionUrl: COMPANION })
}
if (!opts.Box && boxInstance) {
window.uppy.removePlugin(boxInstance)
}
// const boxInstance = window.uppy.getPlugin('Box')
// if (opts.Box && !boxInstance) {
// window.uppy.use(Box, { target: Dashboard, companionUrl: COMPANION })
// }
// if (!opts.Box && boxInstance) {
// window.uppy.removePlugin(boxInstance)
// }
const webcamInstance = window.uppy.getPlugin('Webcam')
if (opts.Webcam && !webcamInstance) {