Skip to content

Commit

Permalink
use dir as string, not object
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ ONeal committed Aug 13, 2018
1 parent 8c4ef23 commit bbfd384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ function createHtmlFileList(files, dir, useIcons, view) {
html += files.map(function (file) {
var classes = [];
var isDir = file.stat && file.stat.isDirectory();
var path = dir.name.split('/').map(function (c) { return encodeURIComponent(c); });
var path = dir.split('/').map(function (c) { return encodeURIComponent(c); });

if (useIcons) {
classes.push('icon');
Expand Down

0 comments on commit bbfd384

Please sign in to comment.