Add Amazon cover-art widget.
authorMike Taylor <mike@indexdata.com>
Fri, 4 Apr 2014 11:22:13 +0000 (12:22 +0100)
committerMike Taylor <mike@indexdata.com>
Fri, 4 Apr 2014 11:22:29 +0000 (12:22 +0100)
src/mkws-widget-image.js

index c0c9723..8322fb7 100644 (file)
@@ -12,3 +12,8 @@ mkws.registerWidgetType('Lolcat', function() {
     mkws.promotionFunction('GoogleImage').call(this);
     if (!this.config.autosearch) this.config.autosearch = 'kitteh';
 });
+
+mkws.registerWidgetType('Coverart', function() {
+    mkws.promotionFunction('Image').call(this);
+    if (!this.config.target) this.config.target = 'AmazonBooks';
+});