Fail more gracefully on pre-IE9 browsers (still room for improvement though)
This commit is contained in:
parent
d8debb5e3c
commit
fcb7c32909
6 changed files with 43 additions and 9 deletions
|
|
@ -163,6 +163,10 @@ var aMachineFileTypes = {
|
|||
'body': [".js"]
|
||||
};
|
||||
|
||||
/*
|
||||
* Since we have a small server-side optimization that assumes any directory entry without an extension is
|
||||
* a directory, this is a list of known exceptions (ie, entries that are NOT directories despite no extension).
|
||||
*/
|
||||
var asNonDirectories = [
|
||||
"COPYING",
|
||||
"LICENSE",
|
||||
|
|
@ -170,6 +174,9 @@ var asNonDirectories = [
|
|||
"makefile"
|
||||
];
|
||||
|
||||
/*
|
||||
* A list of plain-text file types that we want the server to serve up with mime-type "text/plain".
|
||||
*/
|
||||
var asExtsPlainText = [
|
||||
"65v",
|
||||
"bas",
|
||||
|
|
@ -201,6 +208,7 @@ var asFilesNonListed = [
|
|||
"package.json",
|
||||
"server.js",
|
||||
"index.html",
|
||||
"notes.md",
|
||||
"README.md",
|
||||
"robots.txt",
|
||||
"machine.xml",
|
||||
|
|
|
|||
Loading…
Reference in a new issue