smell resolve

This commit is contained in:
John McLear 2020-12-08 15:49:41 +00:00
parent 46805d80d6
commit 1a577d53bd

View file

@ -66,9 +66,9 @@ const padeditor = (function () {
}
// Listen for clicks on sidediv items
$outerdoc.find('#sidedivinner').on('click', 'div', function () {
const lineNumber = $(this).index() + 1;
window.location.hash = 'L' + lineNumber;
})
const targetLineNumber = $(this).index() + 1;
window.location.hash = `L${targetLineNumber}`;
});
readyFunc();
}