Problem JS on TOC module
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Problem JS on TOC module’ is closed to new replies.