Skip to content

Commit b43953d

Browse files
zeripathsilverwind6543
authored andcommitted
Fix Dropzone following go-gitea#15315 (go-gitea#15353)
* Fix Dropzone following go-gitea#15315 go-gitea#15315 appears to have caused a change in the way Dropzone is imported - and it now produces a module rather than the constructor. This PR rather hackily just adds another Dropzone call to the result. Signed-off-by: Andrew Thornton <[email protected]> * use destructured export Co-authored-by: silverwind <[email protected]> Co-authored-by: 6543 <[email protected]>
1 parent a202cd2 commit b43953d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/features/dropzone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default async function createDropzone(el, opts) {
2-
const [{default: Dropzone}] = await Promise.all([
2+
const [{Dropzone}] = await Promise.all([
33
import(/* webpackChunkName: "dropzone" */'dropzone'),
44
import(/* webpackChunkName: "dropzone" */'dropzone/dist/dropzone.css'),
55
]);

0 commit comments

Comments
 (0)