Browse Source

Update index.js

lint fixed
pull/5095/head
Cláudio Patrício 2 years ago committed by GitHub
parent
commit
3e1133679b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      src/utils/index.js

9
src/utils/index.js

@ -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
}

Loading…
Cancel
Save