projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb0e69e
)
Add Amazon cover-art widget.
author
Mike Taylor
<mike@indexdata.com>
Fri, 4 Apr 2014 11:22:13 +0000
(12:22 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Fri, 4 Apr 2014 11:22:29 +0000
(12:22 +0100)
src/mkws-widget-image.js
patch
|
blob
|
history
diff --git
a/src/mkws-widget-image.js
b/src/mkws-widget-image.js
index
c0c9723
..
8322fb7
100644
(file)
--- a/
src/mkws-widget-image.js
+++ b/
src/mkws-widget-image.js
@@
-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';
+});