|
@ -12,7 +12,9 @@ module.exports= |
|
|
|
|
|
|
|
|
serveStaticContent: function(request, result, filename, baseURL) |
|
|
serveStaticContent: function(request, result, filename, baseURL) |
|
|
{ |
|
|
{ |
|
|
fullPath = baseURL + filename; |
|
|
|
|
|
|
|
|
var fullPath = baseURL + filename; |
|
|
|
|
|
if(fullPath.charAt(0) === '/') |
|
|
|
|
|
fullPath = fullPath.substring(1,); |
|
|
if (filename.includes(".svg") || filename.includes(".svg")) |
|
|
if (filename.includes(".svg") || filename.includes(".svg")) |
|
|
{ |
|
|
{ |
|
|
includes.sendSVG(result, fullPath); |
|
|
includes.sendSVG(result, fullPath); |
|
|