From b0398213d111d4d4253ed5d17c57ae442e67475a Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Fri, 28 Jul 2023 12:35:43 +0400 Subject: [PATCH] fix console error message if jQuery is not loaded --- media/com_jedchecker/js/script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/media/com_jedchecker/js/script.js b/media/com_jedchecker/js/script.js index 2852d3b..809bc1a 100644 --- a/media/com_jedchecker/js/script.js +++ b/media/com_jedchecker/js/script.js @@ -105,6 +105,8 @@ new bootstrap.Tooltip(document.getElementById('jedchecker'), {container: 'body', selector: '[data-bs-toggle=tooltip]'}); document.addEventListener('DOMContentLoaded', () => { - jQuery.fn.scrollspy.noConflict(); + try { + jQuery.fn.scrollspy.noConflict(); + } catch (e) {} }, true); })();