• the site uses a СSP, so onclick events will not work, tell me how to render onclick = “theChampInitiateLogin (this)” separately. I know how to insert a script into the page. At the moment I removed onclick = “theChampInitiateLogin (this)” and try to write a separate script for it, but something doesn’t work

    • This topic was modified 4 years, 4 months ago by bahinnn.
    • This topic was modified 4 years, 4 months ago by bahinnn.
Viewing 1 replies (of 1 total)
  • Plugin Author Heateor Support

    (@heateor)

    We will make sure the plugin works even with CSP enabled, in the upcoming updates. For now, you can use the following Javascript to make social login work.

    jQuery(function(){
        jQuery('div.the_champ_login_container').find('ss.theChampLoginSvg, div.theChampLoginButtonText').click(function(){
            theChampInitiateLogin(jQuery(this));
        });
    });

    You need jQuery loaded at the web page to get it working.

Viewing 1 replies (of 1 total)
  • The topic ‘Take the onclick event separately’ is closed to new replies.