Skip to content

Commit db95331

Browse files
Fix undeclared variable in strict mode
1 parent 427a4f9 commit db95331

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

highlight-helper.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ function Highlighter(options = hhDefaultOptions) {
263263
} else {
264264
// Draw highlights with Custom Highlight API
265265
if (options.drawingMode === 'highlight-api' && supportsHighlightApi) {
266+
let highlightObj;
266267
if (CSS.highlights.has(highlightId)) {
267268
highlightObj = CSS.highlights.get(highlightId);
268269
highlightObj.clear();

0 commit comments

Comments
 (0)