Archived
1
0

Fix web view sometimes not loading correctly

Fixes #929.
This commit is contained in:
Asher
2019-08-27 13:42:53 -05:00
parent 830ccfe245
commit d33b2d2af9
2 changed files with 12 additions and 16 deletions

View File

@ -66,7 +66,7 @@ export const getMediaMime = (filePath?: string): string => {
return filePath && (vsGetMediaMime(filePath) || (<{[index: string]: string}>{
".css": "text/css",
".html": "text/html",
".js": "text/javascript",
".js": "application/javascript",
".json": "application/json",
})[extname(filePath)]) || "text/plain";
};