From b9db9ab58bdcef2b80334eadf953862c5ccb1903 Mon Sep 17 00:00:00 2001 From: raphael Date: Mon, 1 Jul 2019 10:52:39 +0200 Subject: [PATCH] add webp to known image formats --- public/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/main.js b/public/js/main.js index 9f80132..228146a 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -333,7 +333,7 @@ function uploadImgAndAddToWhiteboard(base64data) { // verify if filename refers to an image function isImageFileName(filename) { var extension = filename.split(".")[filename.split(".").length - 1]; - var known_extensions = ["png", "jpg", "jpeg", "gif", "tiff", "bmp"]; + var known_extensions = ["png", "jpg", "jpeg", "gif", "tiff", "bmp", "webp"]; return known_extensions.includes(extension.toLowerCase()); }