Skip to content

Commit

Permalink
Keep the .wu class for consistent styling of TWC icons
Browse files Browse the repository at this point in the history
  • Loading branch information
idpaterson committed Feb 21, 2019
1 parent 0326ba9 commit eaf932c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboard/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1943,7 +1943,7 @@ function renderString($sce, value) {
return '<img class="wu" src="https://icons.wxug.com/i/c/' + iconSet + '/' + icon + ext + '" />';
}).replace(/\:twc-(\d+)\:/gi, function(match, iconCode) {
iconCode = (iconCode.length > 1 ? '' : '0') + iconCode
return '<img class="twc" src="https://smartthings-twc-icons.s3.amazonaws.com/' + iconCode + '.png" />';
return '<img class="twc wu" src="https://smartthings-twc-icons.s3.amazonaws.com/' + iconCode + '.png" />';
}).replace(/(?![^<]*[>])#[a-z0-9]{6}/gi, function(match) {
return '<span class="swatch" style="background-color:' + match + '">&nbsp;&nbsp;&nbsp;&nbsp;</span>' + match;
}).replace(/\\[rn]/gi, '<br/>');
Expand Down

0 comments on commit eaf932c

Please sign in to comment.