From 5b7b2c17b972a5ae7f0968bf6965334faf39384a Mon Sep 17 00:00:00 2001 From: Theo Tillberg Date: Wed, 18 Apr 2018 10:11:34 +0200 Subject: [PATCH] Adjust example code for imageForSize helper The imageForSize method seems be accessible through the `helpers` namespace which doesn't reflect in the docs. --- src/image-helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image-helpers.js b/src/image-helpers.js index 493e868c0..a22ff02af 100644 --- a/src/image-helpers.js +++ b/src/image-helpers.js @@ -8,7 +8,7 @@ export default { * Images do not scale up. * * @example - * const url = client.image.imageForSize(product.variants[0].image, {maxWidth: 50, maxHeight: 50}); + * const url = client.image.helpers.imageForSize(product.variants[0].image, {maxWidth: 50, maxHeight: 50}); * * @memberof ImageHelpers * @method imageForSize