Skip to content

Commit

Permalink
Fixed error in Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
lauracwu committed Sep 19, 2014
1 parent f1100c1 commit b79c068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ var resources = (function() {
var folderDate = document.createElement('td');
folderDate.innerHTML = file.date;
row.appendChild(folderDate);
if (file.name.endsWith('.gdb')){
if (file.name.substr(file.name.length-4) == '.gdb'){
row.onclick = function(){clickedFile(this)};
}
else{
Expand Down

0 comments on commit b79c068

Please sign in to comment.