mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Set default config as empty object (Fix #1195)
This commit is contained in:
parent
b75fd70042
commit
a41ba8852f
@ -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__}`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user