jQuery-Electron fix
Published at
This TIL is more than a year old. Some details may have changed.
When using Electron and UI5, there are som issues with loading jQuery. Fix this using the following snippet:
<!-- Insert this line above script imports -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<!-- normal script imports etc -->
<script id='sap-ui-bootstrap'
src='../resources/sap-ui-core.js'
data-sap-ui-theme='sap_belize'
data-sap-ui-libs='sap.m'
data-sap-ui-compatVersion='edge'
data-sap-ui-bindingSyntax='complex'
data-sap-ui-resourceroots='{
"<namespace>": "./"
}'
data-sap-ui-preload='async'></script>
<!-- Insert this line after script imports -->
<script>if (window.module) module = window.module;</script>