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

#7 Support image size on HipChat notifications

parent a55737aa
No related branches found
No related tags found
No related merge requests found
......@@ -47,8 +47,18 @@ exports.initWebApp = function(options) {
return '<a href="' + url + '">' + text + '</a>';
};
var image = function(alt, url) {
return '<img height="32px" src="' + url + '" />';
var image = function(alt, url, width, height) {
var size = '';
if (width != undefined) {
size += ' width="' + width + 'px"';
}
if (height != undefined) {
size += ' height="' + height + 'px"';
}
else {
size += ' height="32px"';
}
return '<img' + size + ' src="' + url + '" />';
};
var getToken = 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