mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-28 04:36:11 +01: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);
|
|
}
|