Support » Plugin: DCO Comment Attachment » try-catch

  • Resolved mrbalkon


    I thin, you guys need do somethimg like this, cause there are some console errors in some pages

    document.addEventListener( ‘DOMContentLoaded’, function() {
    // This is a dirty method, but there is no hook in WordPress to add attributes to the commenting form.

    .getElementById( ‘respond’ )
    .querySelector( ‘form’ )
    .setAttribute( ‘enctype’, ‘multipart/form-data’ );
    } catch(e){
    // console.log(e);



Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘try-catch’ is closed to new replies.