From: zeripath Date: Fri, 9 Apr 2021 02:32:30 +0000 (+0100) Subject: Fix Dropzone following #15315 (#15353) X-Git-Tag: v1.15.0-rc1~500 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7088bcf61bdb748ccd902b6c8ae869340bb4b333;p=gitea.git Fix Dropzone following #15315 (#15353) * Fix Dropzone following #15315 #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 * use destructured export Co-authored-by: silverwind Co-authored-by: 6543 <6543@obermui.de> --- diff --git a/web_src/js/features/dropzone.js b/web_src/js/features/dropzone.js index 428f1d677a..6a4f7e17e4 100644 --- a/web_src/js/features/dropzone.js +++ b/web_src/js/features/dropzone.js @@ -1,5 +1,5 @@ export default async function createDropzone(el, opts) { - const [{default: Dropzone}] = await Promise.all([ + const [{Dropzone}] = await Promise.all([ import(/* webpackChunkName: "dropzone" */'dropzone'), import(/* webpackChunkName: "dropzone" */'dropzone/dist/dropzone.css'), ]);