Browse Source

Added ability to include GIFs in blog posts

master
jrtechs 3 years ago
parent
commit
49b98b443a
2 changed files with 12 additions and 0 deletions
  1. +7
    -0
      includes/includes.js
  2. +5
    -0
      includes/staticContentServer.js

+ 7
- 0
includes/includes.js View File

@ -175,6 +175,13 @@ module.exports =
sendCachedContent(fileName, 'image/png', result);
},
//pronounced jjjif
sendGif: function(result, fileName)
{
sendCachedContent(fileName, 'image/gif', result);
},
/**Sends the user an image from the specified fileName.
*

+ 5
- 0
includes/staticContentServer.js View File

@ -63,6 +63,11 @@ module.exports=
includes.sendHTML(result, fullPath);
return true;
}
else if (filename.includes(".gif"))
{
includes.sendGif(result, fullPath);
return true;
}
return false;
}
};

Loading…
Cancel
Save