mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-09 17:46:31 +02:00
Empty files are editable
Signed-off-by: Marco Dickert <marco@misterunknown.de>
This commit is contained in:
@@ -150,9 +150,9 @@ function IFM(params) {
|
|||||||
(
|
(
|
||||||
typeof item.mime_type === "string" && (
|
typeof item.mime_type === "string" && (
|
||||||
item.mime_type.substr( 0, 4 ) == "text"
|
item.mime_type.substr( 0, 4 ) == "text"
|
||||||
|| item.mime_type == "inode/x-empty"
|
|| item.mime_type.indexOf("x-empty") != -1
|
||||||
|| item.mime_type.indexOf( "xml" ) != -1
|
|| item.mime_type.indexOf("xml") != -1
|
||||||
|| item.mime_type.indexOf( "json" ) != -1
|
|| item.mime_type.indexOf("json") != -1
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user