IE origin fix

This commit is contained in:
Niklas von Hertzen 2011-11-26 21:29:46 +02:00
commit 1c6469d29b

View File

@ -27,6 +27,8 @@ html2canvas.Preload = function(element, opts){
imgLen = domImages.length,
link = doc.createElement("a");
link.href = window.location.href;
pageOrigin = link.protocol + link.host;
opts = opts || {};
options = html2canvas.Util.Extend(opts, options);
@ -37,8 +39,8 @@ html2canvas.Preload = function(element, opts){
function isSameOrigin(url){
link.href = url;
return ((link.protocol + link.host) === pageOrigin);
var origin = link.protocol + link.host;
return ":" === origin || (origin === pageOrigin);
}
function start(){