fix JS error from cropper, stalling eTemplate with minified JS

This commit is contained in:
Ralf Becker 2020-02-02 10:32:12 +01:00
parent abd6f7d669
commit 3575f06501

View File

@ -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 = {};