mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-07 09:06:48 +01:00
Can now open JSON files
This commit is contained in:
@@ -1446,6 +1446,7 @@ var ICEcoder = {
|
||||
fileExt = fileExt[fileExt.length - 1];
|
||||
caretLocType =
|
||||
fileExt === "js" ? "JavaScript"
|
||||
: fileExt === "json" ? "JavaScript"
|
||||
: fileExt === "coffee" ? "CoffeeScript"
|
||||
: fileExt === "ts" ? "TypeScript"
|
||||
: fileExt === "py" ? "Python"
|
||||
|
||||
@@ -141,7 +141,7 @@ class File
|
||||
$finfo = "other";
|
||||
};
|
||||
}
|
||||
if (0 === strpos($finfo, "text") || 0 === strpos($finfo, "application/xml") || false !== strpos($finfo, "empty")) {
|
||||
if (0 === strpos($finfo, "text") || 0 === strpos($finfo, "application/json") || 0 === strpos($finfo, "application/xml") || false !== strpos($finfo, "empty")) {
|
||||
echo 'fileType="text";';
|
||||
|
||||
// Get file over FTP?
|
||||
|
||||
Reference in New Issue
Block a user