Skip to content

Commit ba19a35

Browse files
gary-kimlunny
authored andcommitted
Fix an issue with some pages throwing 'not defined' js exceptions #7450 (#7453)
Fix an issue introduced by cc8e7dd Signed-off-by: Gary Kim <[email protected]>
1 parent cc8e7dd commit ba19a35

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

public/js/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ var csrf;
1111
var suburl;
1212

1313
// Disable Dropzone auto-discover because it's manually initialized
14-
Dropzone.autoDiscover = false;
14+
if (typeof(Dropzone) !== "undefined") {
15+
Dropzone.autoDiscover = false;
16+
}
1517

1618
// Polyfill for IE9+ support (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from)
1719
if (!Array.from) {

0 commit comments

Comments
 (0)