Skip to content

Commit

Permalink
Improve compatibility with jQuery 3
Browse files Browse the repository at this point in the history
Which is used in WordPress 5.6+

Also adjusted few premium features with similar issue. refs matomo-org/matomo-for-wordpress#414
  • Loading branch information
tsteur committed Jan 19, 2021
1 parent f5057ca commit fc5b5ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Tour/templates/engagement.twig
Expand Up @@ -50,7 +50,7 @@
<p class="tourSuperUserNote">{{ 'Tour_OnlyVisibleToSuperUser'|translate('<a href="https://matomo.org/faq/general/faq_35/" target="_blank" rel="noreferrer noopener">', '</a>')|raw }}</p>
<script>
jQuery(window).off('focus.tourEngagement').on('focus.tourEngagement', function () {
if (jQuery('#widgetTourgetEngagement').size()) {
if (jQuery('#widgetTourgetEngagement').length) {
tourEngagement.goToPage({{ currentPage|e('js') }});
}
});
Expand Down

0 comments on commit fc5b5ee

Please sign in to comment.