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