Skip to content

Commit

Permalink
Fix an issue with some pages throwing 'not defined' js exceptions
Browse files Browse the repository at this point in the history
Fix an issue introduced by 831288c

Signed-off-by: Gary Kim <gary@garykim.dev>
  • Loading branch information
gary-kim committed Jul 13, 2019
1 parent 831288c commit 8f7335f
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 8f7335f

Please sign in to comment.