Skip to content

Commit

Permalink
fixes #963
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed May 9, 2016
1 parent 58a5d71 commit f1145ca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions assets/js/postmessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@
val = args.prefix + newval + args.units + args.suffix;
}

// Simple tweak for background-image properties.
if ( 'background-image' === args.property ) {
if ( 0 > val.indexOf( 'url(' ) ) {
val = 'url("' + val + '")';
}
}

// Inject HTML
if ( 'html' === args['function'] ) {
if ( 'undefined' !== typeof args.attr && undefined !== args.attr ) {
Expand Down

0 comments on commit f1145ca

Please sign in to comment.