Update index.js
lint fixed
This commit is contained in:
@@ -2,10 +2,13 @@ function convertPathToHtml(path) {
|
||||
let htmlpath = ''
|
||||
while (path.startsWith('../')) {
|
||||
path = path.slice(3)
|
||||
if (htmlpath.length < 2) htmlpath += '.'
|
||||
else htmlpath += '/..'
|
||||
if (htmlpath.length < 2) {
|
||||
htmlpath += '.'
|
||||
}
|
||||
else {
|
||||
htmlpath += '/..'
|
||||
}
|
||||
}
|
||||
|
||||
return htmlpath
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user