Skip to content

Commit

Permalink
possible fix for #957
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed May 2, 2016
1 parent 7d6fa2d commit c505bad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion assets/js/postmessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@

// Inject HTML
if ( 'html' === args['function'] ) {
jQuery( args.element ).html( val );
if ( 'undefined' !== typeof args.attr && undefined !== args.attr ) {
jQuery( args.element ).attr( args.attr, val );
} else {
jQuery( args.element ).html( val );
}

// Add CSS
} else {
Expand Down

0 comments on commit c505bad

Please sign in to comment.