From ba19a35b6bb8ea6ebd6cf7d06bfd06f90f77a91f Mon Sep 17 00:00:00 2001 From: Gary Kim Date: Sat, 13 Jul 2019 14:51:44 +0000 Subject: [PATCH] Fix an issue with some pages throwing 'not defined' js exceptions #7450 (#7453) Fix an issue introduced by cc8e7dd355c9c625b895a1b633a3a7fa5016f718 Signed-off-by: Gary Kim --- public/js/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/index.js b/public/js/index.js index ea51141cc7..aea1265c49 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -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) {