Commit 3402691d authored by Jacob Schatz's avatar Jacob Schatz

Fixes previous dir bug.

parent 675864e2
...@@ -16,6 +16,7 @@ const RepoHelper = { ...@@ -16,6 +16,7 @@ const RepoHelper = {
getLanguageForFile(file, langs) { getLanguageForFile(file, langs) {
const ext = `.${file.name.split('.').pop()}`; const ext = `.${file.name.split('.').pop()}`;
console.log('ext',ext,'ext')
let foundLang; let foundLang;
if(langs.some((l) => { if(langs.some((l) => {
if(l.extensions && l.extensions.indexOf(ext) > -1) { if(l.extensions && l.extensions.indexOf(ext) > -1) {
......
...@@ -2,7 +2,7 @@ const RepoPreviousDirectory = { ...@@ -2,7 +2,7 @@ const RepoPreviousDirectory = {
template: ` template: `
<tr> <tr>
<td colspan='3'> <td colspan='3'>
<a :href='prevUrl' @click.prevent='linkClicked(prevurl)'>..</a> <a :href='prevUrl' @click.prevent='linkClicked(prevUrl)'>..</a>
</td> </td>
</tr> </tr>
`, `,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment