mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fix IE9 https origin check bug
This commit is contained in:
parent
9db1ecfdfc
commit
25d892f525
@ -2,7 +2,7 @@ function ImageLoader(options, support) {
|
||||
this.link = null;
|
||||
this.options = options;
|
||||
this.support = support;
|
||||
this.origin = window.location.protocol + window.location.host;
|
||||
this.origin = window.location.protocol + window.location.hostname;
|
||||
}
|
||||
|
||||
ImageLoader.prototype.findImages = function(nodes) {
|
||||
@ -60,7 +60,7 @@ ImageLoader.prototype.isSameOrigin = function(url) {
|
||||
var link = this.link || (this.link = document.createElement("a"));
|
||||
link.href = url;
|
||||
link.href = link.href; // IE9, LOL! - http://jsfiddle.net/niklasvh/2e48b/
|
||||
var origin = link.protocol + link.host;
|
||||
var origin = link.protocol + link.hostname;
|
||||
return (origin === this.origin);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user