Converted all client code to Standard JS compliant
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable no-unused-vars */
|
||||
|
||||
function setInputSelection (input, startPos, endPos) {
|
||||
input.focus()
|
||||
@@ -14,3 +15,5 @@ function setInputSelection (input, startPos, endPos) {
|
||||
range.select()
|
||||
}
|
||||
}
|
||||
|
||||
/* eslint-enable no-unused-vars */
|
||||
|
@@ -1,3 +1,5 @@
|
||||
/* global _ */
|
||||
/* eslint-disable no-unused-vars */
|
||||
|
||||
function makeSafePath (rawPath) {
|
||||
let rawParts = _.split(_.trim(rawPath), '/')
|
||||
@@ -7,3 +9,5 @@ function makeSafePath (rawPath) {
|
||||
|
||||
return _.join(_.filter(rawParts, (r) => { return !_.isEmpty(r) }), '/')
|
||||
}
|
||||
|
||||
/* eslint-enable no-unused-vars */
|
||||
|
Reference in New Issue
Block a user