Index: elements/viewer-button/viewer-button.html |
diff --git a/elements/viewer-button/viewer-button.html b/elements/viewer-button/viewer-button.html |
index b4dbb45b20a9618116351f96e0d56cadffd15d37..aec77e3e6b51c9a5f92267afa2fe3391beec900a 100644 |
--- a/elements/viewer-button/viewer-button.html |
+++ b/elements/viewer-button/viewer-button.html |
@@ -19,7 +19,8 @@ |
srcChanged: function() { |
if (this.src) { |
this.$.icon.style.backgroundImage = |
- 'url(elements/viewer-button/img/' + dpi + 'DPI/' + this.src + ')'; |
+ 'url(' + this.getAttribute('assetpath') + 'img/' + dpi + |
+ 'DPI/' + this.src + ')'; |
} else { |
this.$.icon.style.backgroundImage = ''; |
} |