@samuelbradshaw/highlight-helper-js 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -263,6 +263,7 @@ function Highlighter(options = hhDefaultOptions) {
263
263
  } else {
264
264
  // Draw highlights with Custom Highlight API
265
265
  if (options.drawingMode === 'highlight-api' && supportsHighlightApi) {
266
+ let highlightObj;
266
267
  if (CSS.highlights.has(highlightId)) {
267
268
  highlightObj = CSS.highlights.get(highlightId);
268
269
  highlightObj.clear();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samuelbradshaw/highlight-helper-js",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "JavaScript tool that enables highlighting or underlining text in an HTML page.",
5
5
  "type": "module",
6
6
  "main": "highlight-helper.mjs",