mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fixed custom renderer option
This commit is contained in:
parent
de1d1d7087
commit
a5969be6f6
@ -43,7 +43,7 @@ html2canvas = function( elements, opts ) {
|
||||
if (typeof options.renderer === "string" && _html2canvas.Renderer[options.renderer] !== undefined) {
|
||||
options._renderer = _html2canvas.Renderer[options.renderer]( options );
|
||||
} else if (typeof options.renderer === "function") {
|
||||
options._renderer = _html2canvas.Renderer.Canvas( options );
|
||||
options._renderer = options.renderer( options );
|
||||
} else {
|
||||
throw("Unknown renderer");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user