Fixed Linting Error + Error with Line Highlighter found in Test
This commit is contained in:
parent
8262cb2f4e
commit
eda9e6b65b
2 changed files with 3 additions and 3 deletions
|
@ -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}`);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue