Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Get img element size from options

  • Loading branch information...
commit 589e6f9f30d498367c063b18d273537d00671fa0 1 parent e075ea2
@jb55 jb55 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  gravatar.js
View
2  gravatar.js
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -35,6 +34,7 @@ exports.url = function (email, config) {
exports.img = function (email, config) {
config = config || {};
+ var size = config.s || config.size;
var url = exports.url(email, config);
var el = document.createElement('img');
el.setAttribute('src', url);
Please sign in to comment.
Something went wrong with that request. Please try again.