mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-18 00:55:35 +00:00
Update app.es6
This commit is contained in:
parent
da6d2b93a3
commit
72810525f5
1 changed files with 7 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue