mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Add encoding step when setting href
This commit is contained in:
parent
eeda86bd5e
commit
6231990c83
@ -11,8 +11,8 @@ export class CacheStorage {
|
||||
return 'about:blank';
|
||||
}
|
||||
|
||||
link.href = url;
|
||||
link.href = link.href; // IE9, LOL! - http://jsfiddle.net/niklasvh/2e48b/
|
||||
link.href = encodeURI(url);
|
||||
link.href = encodeURI(link.href); // IE9, LOL! - http://jsfiddle.net/niklasvh/2e48b/
|
||||
return link.protocol + link.hostname + link.port;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user