• Just a bug report.

    For logged in user, when there is no need to display popup below js triggers popup anyway.

    xoo-el-js.js?ver=2.8.6:429 Uncaught TypeError: Cannot read properties of null (reading 'toggle')
    var popup = null;

    //Popup
    if( $('.xoo-el-container').length ){
    popup = new Popup( $('.xoo-el-container') );
    }


    //Auto open popup
    if( xoo_el_localize.autoOpenPopup === 'yes' && localStorage.getItem( "xoo_el_popup_opened" ) !== "yes" ){

    if( xoo_el_localize.autoOpenPopupOnce === "yes" ){
    localStorage.setItem( "xoo_el_popup_opened", "yes" );
    }

    setTimeout(function(){
    popup.toggle('show');
    }, xoo_el_localize.aoDelay);
    }

    I’ve marked where code lacks of validation of popup var beeing set, but still this code should not be triggered when user is already logged in.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.