mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
fix permission denied access on inner iFrame (crossDomain)
This commit is contained in:
parent
62fa6038e7
commit
217a75c0f6
@ -128,5 +128,12 @@ html2canvas.Util.Extend = function (options, defaults) {
|
|||||||
|
|
||||||
html2canvas.Util.Children = function(el) {
|
html2canvas.Util.Children = function(el) {
|
||||||
// $(el).contents() !== el.childNodes, Opera / IE have issues with that
|
// $(el).contents() !== el.childNodes, Opera / IE have issues with that
|
||||||
return $(el).contents();
|
var children;
|
||||||
|
try {
|
||||||
|
children = $(el).contents();
|
||||||
|
} catch (ex) {
|
||||||
|
html2canvas.log("html2canvas.Util.Children failed with exception: " + ex.message);
|
||||||
|
children = [];
|
||||||
|
}
|
||||||
|
return children;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user