Commit 408771b8 authored by Jacob Schatz's avatar Jacob Schatz Committed by Eric Eastwood

Change to classlist.contains.

parent 37b7ce48
......@@ -58,7 +58,7 @@ const RepoEditor = {
onMonacoEditorMouseUp(e) {
const lineNumber = e.target.position.lineNumber;
if (e.target.element.className === 'line-numbers') {
if (e.target.element.classList.contains('line-numbers')) {
location.hash = `L${lineNumber}`;
Store.activeLine = lineNumber;
}
......
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