lostdesign / teamotes

Your app to use emotes in anywhere - Github, Twitter, Teams and many more. You can even use them for your professional workflows, such as creating presentations or graphic designs. 👀
44 stars 9 forks source link

Fix static image mime type #14

Closed lostdesign closed 4 years ago

lostdesign commented 4 years ago

Currently the image mime type is hardcoded to image/png but should rather be dynamic based on the file that got clicked on. Perhaps related to #9 as electrons api includes a get filetype method.

Check the following line: https://github.com/lostdesign/teamotes/blob/47ecfe01681ed4f979c86105ef73c2fa9b27d808/src/views/Home.vue#L70

See https://nodejs.org/api/fs.html for reference, there should be file.extension or something along those lines.