Skip to content

Commit

Permalink
Set default config as empty object (Fix #1195)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasvh committed Aug 30, 2017
1 parent b75fd70 commit a41ba88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export type Options = {
offsetY: number
};

const html2canvas = (element: HTMLElement, config: Options): Promise<*> => {
const html2canvas = (element: HTMLElement, config: Options = {}): Promise<*> => {
if (typeof console === 'object' && typeof console.log === 'function') {
console.log(`html2canvas ${__VERSION__}`);
}
Expand Down

0 comments on commit a41ba88

Please sign in to comment.