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 831288c

Signed-off-by: Gary Kim <gary@garykim.dev>
  • Loading branch information
gary-kim authored and jeffliu27 committed Jul 18, 2019
1 parent e7fd68d commit 3733690
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 3733690

Please sign in to comment.