Skip to content

Commit

Permalink
Fix an issue with some pages throwing 'not defined' js exceptions go-…
Browse files Browse the repository at this point in the history
…gitea#7450

Fix an issue introduced by cc8e7dd

Signed-off-by: Gary Kim <gary@garykim.dev>
  • Loading branch information
gary-kim committed Jul 13, 2019
1 parent cc8e7dd commit bad0452
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bad0452

Please sign in to comment.