Skip to content

Commit

Permalink
Cleanup comment language
Browse files Browse the repository at this point in the history
  • Loading branch information
Tolsee authored and dougwilson committed Apr 22, 2019
1 parent 9031a04 commit 1fc4c7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/app.js
Expand Up @@ -49,10 +49,10 @@ $(function(){
/**
* Get version from pathName
* pathName can be one of below for api.html
* - /<language>/<version>/<fileName>
* - /<language>/<fileName>
* - /<language>/<version>/api.html
* - /<language>/api.html
*/
let pathArray = pathName.split('/').filter(string => string); // Filter empty part
let pathArray = pathName.split('/').filter(string => string); // remove empty string
return (pathArray.length === 3) ? pathArray.splice(-2)[0] : '4x';
}

Expand Down

0 comments on commit 1fc4c7b

Please sign in to comment.