Support » Plugin: Spectra - WordPress Gutenberg Blocks » Problem JS on TOC module

  • Resolved Adrián de Grafreak

    (@adriandegrafreak)


    Hi,

    On the code in /assets/js/table-of-contents.js line 126 you have a ESNext code that throws error on the browser.

    The solution is replace this:
    attr.mappingHeaders.forEach((h_tag, index) => h_tag === true ? allowed_h_tags.push('h' + (index+1)) : null);

    to this:

    attr.mappingHeaders.forEach(function(h_tag, index) { ( h_tag === true ? allowed_h_tags.push('h' + (index+1)) : null)} );

    Please, on the next update solve this.
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Team Brainstorm Force

    (@brainstormteam)

    Hello @adriandegrafreak ,

    We’re sorry for the inconvenience caused to you. Also, we are thankful for your patience and readiness to help us fix things that we come across.

    I’d like to let you know, we have fixed this issue at our end and soon going to release an update regarding it.

    Your patience and co-operation are highly appreciated.

    Plugin Support Team Brainstorm Force

    (@brainstormteam)

    Hello @adriandegrafreak ,

    I’d like to let you know, we have fixed this issue in our 1.20.1, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem JS on TOC module’ is closed to new replies.