docs: remove invalid async option from docs (fix #1769) (#1796)

This commit is contained in:
MoyuScript
2019-04-07 22:16:29 -07:00
parent 3053783b76
commit e52193c47e
3 changed files with 0 additions and 4 deletions

View File

@ -184,7 +184,6 @@ export class DocumentCloner {
return this.renderer(
documentElement,
{
async: this.options.async,
allowTaint: this.options.allowTaint,
backgroundColor: '#ffffff',
canvas: null,

View File

@ -8,7 +8,6 @@ import Logger from './Logger';
import {renderElement} from './Window';
export type Options = {
async: ?boolean,
allowTaint: ?boolean,
backgroundColor: string,
canvas: ?HTMLCanvasElement,
@ -50,7 +49,6 @@ const html2canvas = (element: HTMLElement, conf: ?Options): Promise<*> => {
const defaultView = ownerDocument.defaultView;
const defaultOptions = {
async: true,
allowTaint: false,
backgroundColor: '#ffffff',
imageTimeout: 15000,