Commit 0d4b5367 authored by Robert Knight's avatar Robert Knight

Use `classList.add` to add tokens to the class list

This is functionally the same, just a little cleaner.
parent c8307923
......@@ -124,7 +124,7 @@ function drawHighlightsAbovePdfCanvas(highlightEls) {
}
// Make the highlight in the text layer transparent.
highlightEl.className += ' is-transparent';
highlightEl.classList.add('is-transparent');
// Associate SVG element with highlight for use by `removeHighlights`.
highlightEl.svgHighlight = rect;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment