From 22b73ea7349fe1bc5ad0b94bc17e576bc87dbea1 Mon Sep 17 00:00:00 2001 From: Joe Germuska Date: Tue, 6 May 2014 08:42:33 -0500 Subject: [PATCH] allow .svg for 'image' MediaType. Closes NUKnightLab/StoryJS-Core#6 thanks @inkbug sorry for epic delay --- source/js/Core/Media/VMM.MediaType.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/js/Core/Media/VMM.MediaType.js b/source/js/Core/Media/VMM.MediaType.js index 52941f2..19e7d52 100644 --- a/source/js/Core/Media/VMM.MediaType.js +++ b/source/js/Core/Media/VMM.MediaType.js @@ -94,7 +94,7 @@ if(typeof VMM != 'undefined' && typeof VMM.MediaType == 'undefined') { media.link = d; media.id = VMM.ExternalAPI.instagram.getInstagramIdFromUrl(d) success = Boolean(media.id); - } else if (d.match(/jpg|jpeg|png|gif/i) || d.match("staticmap") || d.match("yfrog.com") || d.match("twitpic.com")) { + } else if (d.match(/jpg|jpeg|png|gif|svg/i) || d.match("staticmap") || d.match("yfrog.com") || d.match("twitpic.com")) { media.type = "image"; media.id = d; success = true;