1
0
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:
Marco Dickert
2020-08-04 15:31:01 +02:00
parent cfb40348a2
commit b4e13ad9c5

View File

@@ -150,9 +150,9 @@ function IFM(params) {
(
typeof item.mime_type === "string" && (
item.mime_type.substr( 0, 4 ) == "text"
|| item.mime_type == "inode/x-empty"
|| item.mime_type.indexOf( "xml" ) != -1
|| item.mime_type.indexOf( "json" ) != -1
|| item.mime_type.indexOf("x-empty") != -1
|| item.mime_type.indexOf("xml") != -1
|| item.mime_type.indexOf("json") != -1
)
)
)