From 9f867ad51ee020398f6dd59a20e345156354b89f Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Wed, 7 Dec 2022 17:10:45 +0000 Subject: [PATCH] Dynannotate: Fix undefined class --- plugins/tiddlywiki/dynannotate/modules/dynannotate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tiddlywiki/dynannotate/modules/dynannotate.js b/plugins/tiddlywiki/dynannotate/modules/dynannotate.js index 00314dab2..cd47c07c7 100644 --- a/plugins/tiddlywiki/dynannotate/modules/dynannotate.js +++ b/plugins/tiddlywiki/dynannotate/modules/dynannotate.js @@ -332,7 +332,7 @@ DynannotateWidget.prototype.applySnippets = function() { // Output the match container.appendChild($tw.utils.domMaker("span",{ text: textMap.string.slice(match.startPos,match.endPos), - "class": "tc-dynannotate-snippet-highlight " + self.getAttribute("searchClass") + "class": "tc-dynannotate-snippet-highlight " + self.getAttribute("searchClass","") })); // Does the context of this match merge into the next? merged = index < matches.length - 1 && matches[index + 1].startPos - match.endPos <= 2 * contextLength;