Commit eda9e6b6 authored by Tim Zallmann's avatar Tim Zallmann

Fixed Linting Error + Error with Line Highlighter found in Test

parent 8262cb2f
......@@ -56,7 +56,7 @@ LineHighlighter.prototype.bindEvents = function() {
LineHighlighter.prototype.highlightHash = function(newHash) {
let range;
if (newHash) this._hash = newHash;
if (newHash && typeof newHash === 'string') this._hash = newHash;
this.clearHighlight();
......
......@@ -28,8 +28,8 @@ export default {
this.highlightFile();
});
},
activeLine(e) {
this.lineHighlighter.highlightHash('#L' + Store.activeLine);
activeLine() {
this.lineHighlighter.highlightHash(`#L${Store.activeLine}`);
},
},
};
......
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