#68 add viwer in the demo shell

add tslint
fix minor tslint errors
This commit is contained in:
Eugenio Romano
2016-05-26 11:46:24 +01:00
parent a6d2df6004
commit 4d53cd107e
11 changed files with 59 additions and 11 deletions

View File

@@ -70,10 +70,10 @@ export class FilesComponent {
}
getRelativeDirectory(currentFolderPath: string): string {
if (currentFolderPath.indexOf('/Sites/swsdp/documentLibrary/') != -1) {
return currentFolderPath.replace('/Sites/swsdp/documentLibrary/', '')
if (currentFolderPath.indexOf('/Sites/swsdp/documentLibrary/') !== -1) {
return currentFolderPath.replace('/Sites/swsdp/documentLibrary/', '');
} else {
return currentFolderPath.replace('/Sites/swsdp/documentLibrary', '')
return currentFolderPath.replace('/Sites/swsdp/documentLibrary', '');
}
}
}