-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
uppy.close()
crashes when remote-sources or image-editor is ins…
…talled (#3914)
- Loading branch information
Showing
5 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,36 @@ | ||
import Uppy from '@uppy/core' | ||
import Dashboard from '@uppy/dashboard' | ||
import RemoteSources from '@uppy/remote-sources' | ||
import Webcam from '@uppy/webcam' | ||
import ScreenCapture from '@uppy/screen-capture' | ||
import GoldenRetriever from '@uppy/golden-retriever' | ||
import ImageEditor from '@uppy/image-editor' | ||
import DropTarget from '@uppy/drop-target' | ||
import Audio from '@uppy/audio' | ||
import Compressor from '@uppy/compressor' | ||
|
||
import '@uppy/core/dist/style.css' | ||
import '@uppy/dashboard/dist/style.css' | ||
|
||
const COMPANION_URL = 'http://companion.uppy.io' | ||
|
||
const uppy = new Uppy() | ||
.use(Dashboard, { target: '#app', inline: true }) | ||
.use(RemoteSources, { companionUrl: COMPANION_URL }) | ||
.use(Webcam, { | ||
target: Dashboard, | ||
showVideoSourceDropdown: true, | ||
showRecordingLength: true, | ||
}) | ||
.use(Audio, { | ||
target: Dashboard, | ||
showRecordingLength: true, | ||
}) | ||
.use(ScreenCapture, { target: Dashboard }) | ||
.use(ImageEditor, { target: Dashboard }) | ||
.use(DropTarget, { target: document.body }) | ||
.use(Compressor) | ||
.use(GoldenRetriever, { serviceWorker: true }) | ||
|
||
// Keep this here to access uppy in tests | ||
window.uppy = uppy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters