Skip to content

Commit

Permalink
Add: JSON File Support
Browse files Browse the repository at this point in the history
  • Loading branch information
evannilaz-zz committed Aug 16, 2020
1 parent 2c53942 commit 77aa955
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file added assets/JSON.webp
Binary file not shown.
4 changes: 2 additions & 2 deletions file.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ function filterFileName(fileName) {
if (!/^[0-9a-zA-Z ... ]+$/.test(fileName) || fileName.split(".")[1] === undefined) {
alert("The file name you've entered is unavailable.");
return false;
} else if (!(fileName.split(".")[1] === "html" || fileName.split(".")[1] === "css" || fileName.split(".")[1] === "js" || fileName.split(".")[1] === "txt")) {
alert("Only HTML, CSS, and JavaScript is supported in Artrium Code currently.");
} else if (!(fileName.split(".")[1] === "html" || fileName.split(".")[1] === "css" || fileName.split(".")[1] === "js" || fileName.split(".")[1] === "txt" || fileName.split(".")[1] === "json")) {
alert("Only HTML, CSS, JavaScript, Text File, and JSON is supported in Artrium Code currently.");
return false;
} else {
return true;
Expand Down

0 comments on commit 77aa955

Please sign in to comment.