Skip to content

Commit

Permalink
Fixes edge case where message text is not a string
Browse files Browse the repository at this point in the history
  • Loading branch information
JanStevens committed May 25, 2014
1 parent 11aea0d commit bf1f0fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/growlDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ angular.module("angular-growl").directive("growl", ["$rootScope", "$sce",

function addMessage(message) {
$timeout(function() {
message.text = $sce.trustAsHtml(message.text);
message.text = $sce.trustAsHtml(String(message.text));
$scope.messages.push(message);

if (message.ttl && message.ttl !== -1) {
Expand Down

0 comments on commit bf1f0fa

Please sign in to comment.