Remove demo file viewer, update dependencies

This commit is contained in:
Pixeldrain-Server committed 2023-05-10 15:08:29 +02:00
1 parent 15a1702063
commit 3f1318784e
8 files changed
+25 -73

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ let text_type = ""
export const set_file = file => {
console.log("loading text file", file.id)
if (file.name.endsWith(".md") || file.name.endsWith(".markdown") || file.mime_type === "text/demo") {
if (file.name.endsWith(".md") || file.name.endsWith(".markdown")) {
markdown(file)
} else if (file.name.endsWith(".txt") || file.size > 524288) {
// If the file is larger than 512KiB we do not enable code highlighting