only call showMessage if it was defined
This commit is contained in:
parent
af29686442
commit
fecad8b8c0
|
@ -267,7 +267,10 @@ var Util = function() {
|
|||
}
|
||||
html = "<p style=\"font-size: 80%; background-color: #"+color+"; margin:0; width: 652px; word-break: break-word; padding: 5px; border-bottom: 1px solid black;\"><span style=\"color: #888;\"><b>"+heading+":</b></span>"+str+"</p>";
|
||||
}
|
||||
showMessages(html);
|
||||
if (showMessages) {
|
||||
// only call function if defined
|
||||
showMessages(html);
|
||||
}
|
||||
}
|
||||
|
||||
this.getLeftNBits = function (string, bitcount) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user