Skip to content
Snippets Groups Projects
Commit 5f0a8994 authored by jurgenhaas's avatar jurgenhaas
Browse files

#7 Try html markup for images in Mattermost notifications

parent b2fd5ba5
No related branches found
No related tags found
No related merge requests found
......@@ -60,12 +60,15 @@ exports.initWebApp = function(options) {
var image = function(alt, url, width, height) {
var size = '';
if (width != undefined) {
size = ' =' + width + 'x';
if (height != undefined) {
size += height;
}
size += ' width="' + width + 'px"';
}
if (height != undefined) {
size += ' height="' + height + 'px"';
}
else {
size += ' height="32px"';
}
return '![' + alt + '](' + url + size + ')';
return '<img' + size + ' src="' + url + '" />';
};
var getHook = function(check) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment