mirror of https://github.com/ColorlibHQ/AdminLTE
fixed lint
parent
3e1133679b
commit
5aca6b1082
|
@ -2,13 +2,9 @@ function convertPathToHtml(path) {
|
||||||
let htmlpath = ''
|
let htmlpath = ''
|
||||||
while (path.startsWith('../')) {
|
while (path.startsWith('../')) {
|
||||||
path = path.slice(3)
|
path = path.slice(3)
|
||||||
if (htmlpath.length < 2) {
|
htmlpath.length < 2 ? htmlpath += '.' : htmlpath += '/..'
|
||||||
htmlpath += '.'
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
htmlpath += '/..'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return htmlpath
|
return htmlpath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue