[ADF-3357] text viewer fixes (#3800)

* text viewer fixes

* allow viewing 'css' and 'md' files as text
This commit is contained in:
Denys Vuika
2018-09-18 10:49:35 +01:00
committed by Eugenio Romano
parent 61de424bab
commit 9a9c3dbfbc
3 changed files with 4 additions and 1 deletions

View File

@@ -234,7 +234,7 @@ export class ViewerComponent implements OnChanges, OnInit, OnDestroy {
private extensions = {
image: ['png', 'jpg', 'jpeg', 'gif', 'bpm', 'svg'],
media: ['wav', 'mp4', 'mp3', 'webm', 'ogg'],
text: ['txt', 'xml', 'js', 'html', 'json', 'ts'],
text: ['txt', 'xml', 'js', 'html', 'json', 'ts', 'css', 'md'],
pdf: ['pdf']
};