mirror of
https://github.com/go-gitea/gitea
synced 2024-11-16 23:24:25 +00:00
bb71ceeeb2
* clean up async/await, and sort init calls in `index.js * use `const _promise` to indicate that we do not need await an async function
9 lines
308 B
JavaScript
9 lines
308 B
JavaScript
export default async function createDropzone(el, opts) {
|
|
const [{Dropzone}] = await Promise.all([
|
|
import(/* webpackChunkName: "dropzone" */'dropzone'),
|
|
import(/* webpackChunkName: "dropzone" */'dropzone/dist/dropzone.css'),
|
|
]);
|
|
Dropzone.autoDiscover = false;
|
|
return new Dropzone(el, opts);
|
|
}
|