We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb44e26 commit f4f2189Copy full SHA for f4f2189
lib/Page.js
@@ -879,7 +879,7 @@ class Page extends EventEmitter {
879
assert(typeof options.clip.width === 'number', 'Expected options.clip.width to be a number but found ' + (typeof options.clip.width));
880
assert(typeof options.clip.height === 'number', 'Expected options.clip.height to be a number but found ' + (typeof options.clip.height));
881
assert(options.clip.width !== 0, 'Expected options.clip.width not to be 0.');
882
- assert(options.clip.height !== 0, 'Expected options.clip.width not to be 0.');
+ assert(options.clip.height !== 0, 'Expected options.clip.height not to be 0.');
883
}
884
return this._screenshotTaskQueue.postTask(this._screenshotTask.bind(this, screenshotType, options));
885
0 commit comments