aboutsummaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-04-09 03:32:30 +0100
committerGitHub <noreply@github.com>2021-04-09 10:32:30 +0800
commit7088bcf61bdb748ccd902b6c8ae869340bb4b333 (patch)
tree78a63e185efb23709bc7374bf8913c5082e4f765 /web_src
parent147826a57750f6e8120fe3bfb350cde61734969c (diff)
downloadgitea-7088bcf61bdb748ccd902b6c8ae869340bb4b333.tar.gz
gitea-7088bcf61bdb748ccd902b6c8ae869340bb4b333.zip
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 <art27@cantab.net> * use destructured export Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/features/dropzone.js2
1 files changed, 1 insertions, 1 deletions
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'),
]);