projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Amazon cover-art widget.
[mkws-moved-to-github.git]
/
src
/
mkws-widget-image.js
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.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';
+});