1
0
mirror of https://github.com/go-gitea/gitea synced 2024-12-24 03:35:55 +01:00

Fix an issue with some pages throwing 'not defined' js exceptions (#7450)

Fix an issue introduced by 831288cc916d5301beaa0adc1d912d6748a4cdaa

Signed-off-by: Gary Kim <gary@garykim.dev>
This commit is contained in:
Gary Kim 2019-07-13 08:09:50 +00:00 committed by zeripath
parent 831288cc91
commit 50d8d171f0

@ -11,7 +11,9 @@ var csrf;
var suburl;
// Disable Dropzone auto-discover because it's manually initialized
Dropzone.autoDiscover = false;
if (typeof(Dropzone) !== "undefined") {
Dropzone.autoDiscover = false;
}
// Polyfill for IE9+ support (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from)
if (!Array.from) {