Hi,
How to properly set up an application with Ultima theme. Application is starting but errors are reported: ERROR ReferenceError: jQuery is not defined, and most features does not work - menus are not clickable.
Do you have any experience?
Regards,
Joachim Rupik
Ultima in Electron application
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
I have found a solution.
In index.html add following lines:
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<!-- normal script imports etc -->
<!--<script src="./jquery-3.2.1.min.js"></script>-->
<!-- Insert this line after script imports -->
<script>if (window.module) module = window.module;</script>
And template works.
In index.html add following lines:
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<!-- normal script imports etc -->
<!--<script src="./jquery-3.2.1.min.js"></script>-->
<!-- Insert this line after script imports -->
<script>if (window.module) module = window.module;</script>
And template works.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Thank you for sharing the solution.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 13 guests