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()); }