Format tweaks in lang modes partial JS

This commit is contained in:
mattpass
2020-05-02 08:55:47 +01:00
parent 8b092c5c9f
commit 52fb7ac900

View File

@@ -1,7 +1,8 @@
// Provide a fileName and get fileExt and mode set based on supported languages
fileExt = fileName.split(".");
fileExt = fileExt[fileExt.length-1];
fileExt = fileExt[fileExt.length - 1];
var mode =
fileExt == "js" ? "text/javascript"
: fileExt == "json" ? "text/javascript"