Skip to content

Commit 7817bec

Browse files
Force default dims for downloadImage to null
1 parent 4d821e3 commit 7817bec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/snapshot/download.js

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ function downloadImage(gd, opts) {
3131

3232
opts = opts || {};
3333
opts.format = opts.format || 'png';
34+
opts.width = opts.width || null;
35+
opts.height = opts.height || null;
3436
opts.imageDataOnly = true;
3537

3638
return new Promise(function(resolve, reject) {

0 commit comments

Comments
 (0)