add source code viewer for different languages

This commit is contained in:
Maren Süwer
2018-10-29 13:19:16 +01:00
parent 370bcd1845
commit 7734b68d0b
3 changed files with 31 additions and 2 deletions

View File

@@ -152,6 +152,7 @@ export function getContentType(url: string, state: any) {
return apiClient
.head(url)
.then(response => {
console.log(response.headers.get("Content-Type"));
return { type: response.headers.get("Content-Type") };
})
.catch(err => {