BigW Consortium Gitlab

Commit 45b8266b by Tim Zallmann

Fixed Eslint Errors

parent 9196a356
...@@ -25,11 +25,11 @@ export default { ...@@ -25,11 +25,11 @@ export default {
methods: { methods: {
addPopEventListener() { addPopEventListener() {
window.addEventListener('popstate', (event) => { window.addEventListener('popstate', () => {
let selectedFile = this.files.find(file => {return location.pathname.indexOf(file.url) > -1}); let selectedFile = this.files.find(file => location.pathname.indexOf(file.url) > -1);
if (!selectedFile) { if (!selectedFile) {
// Maybe it is not in the current tree but in the opened tabs // Maybe it is not in the current tree but in the opened tabs
selectedFile = Store.openedFiles.find(file => {return location.pathname.indexOf(file.url) > -1}); selectedFile = Store.openedFiles.find(file => location.pathname.indexOf(file.url) > -1);
} }
if (selectedFile) { if (selectedFile) {
if (selectedFile.url !== this.activeFile.url) { if (selectedFile.url !== this.activeFile.url) {
...@@ -41,7 +41,7 @@ export default { ...@@ -41,7 +41,7 @@ export default {
if (!isNaN(lineNumber)) { if (!isNaN(lineNumber)) {
Store.setActiveLine(lineNumber); Store.setActiveLine(lineNumber);
if (Store.isPreviewView()) { if (Store.isPreviewView()) {
document.getElementById('L' + lineNumber).scrollIntoView(); document.getElementById(`L${lineNumber}`).scrollIntoView();
} else { } else {
Helper.monacoInstance.setPosition({ Helper.monacoInstance.setPosition({
lineNumber: this.activeLine, lineNumber: this.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