From 3575f0650123a1a8aca921a1c6753f9688b68966 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 2 Feb 2020 10:32:12 +0100 Subject: [PATCH] fix JS error from cropper, stalling eTemplate with minified JS --- api/js/jsapi/egw.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/js/jsapi/egw.js b/api/js/jsapi/egw.js index dab9d0518d..fb48ad14b8 100644 --- a/api/js/jsapi/egw.js +++ b/api/js/jsapi/egw.js @@ -441,6 +441,11 @@ // get TypeScript modules working with our loader function require(_file) { + switch(_file) + { + case 'jquery': // cropper mistakes this for commonJS (typeof exports === 'object') + return window.jQuery; + } return window.exports; } var exports = {};