Skip to content

Commit 82ddfe1

Browse files
committed
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 <art27@cantab.net>
1 parent f544414 commit 82ddfe1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web_src/js/features/dropzone.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ export default async function createDropzone(el, opts) {
44
import(/* webpackChunkName: "dropzone" */'dropzone/dist/dropzone.css'),
55
]);
66

7-
Dropzone.autoDiscover = false;
8-
return new Dropzone(el, opts);
7+
Dropzone.Dropzone.autoDiscover = false;
8+
return new Dropzone.Dropzone(el, opts);
99
}

0 commit comments

Comments
 (0)