We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec2224d commit 68253c2Copy full SHA for 68253c2
lib/scripts/page.js
@@ -26,7 +26,9 @@ dw_page = {
26
*/
27
.each(function () {
28
let $tgt = jQuery(this).parent();
29
- const nr = $tgt.attr('class').match(/(\s+|^)editbutton_(\d+)(\s+|$)/)[2];
+ const match = $tgt.attr('class').match(/(\s+|^)editbutton_(\d+)(\s+|$)/);
30
+ if(!match) return;
31
+ const nr = match[2];
32
let $highlight = jQuery(); // holder for elements in the section to be highlighted
33
const $highlightWrap = jQuery('<div class="section_highlight_wrapper"></div>');
34
0 commit comments