Preview Javascript and JSON files
This commit is contained in:
parent
8e4fed7c0f
commit
80dadbced4
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ handle_mime() {
|
|||
local mimetype="${1}"
|
||||
case "${mimetype}" in
|
||||
# Text
|
||||
text/* | */xml)
|
||||
text/* | */xml | */json | */javascript)
|
||||
# Syntax highlight
|
||||
if [ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]; then
|
||||
exit 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue