mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Add support for loading cross origin images using proxy
This commit is contained in:
@ -6,7 +6,14 @@ var REFTEST = window.location.search.indexOf('reftest') !== -1;
|
||||
(function(document, window) {
|
||||
function appendScript(src) {
|
||||
document.write(
|
||||
'<script type="text/javascript" src="' + src + '.js?' + Math.random() + '"></script>'
|
||||
'<script type="text/javascript" src="' +
|
||||
window.location.protocol +
|
||||
'//' +
|
||||
window.location.host +
|
||||
src +
|
||||
'.js?' +
|
||||
Math.random() +
|
||||
'"></script>'
|
||||
);
|
||||
}
|
||||
|
||||
@ -147,7 +154,7 @@ var REFTEST = window.location.search.indexOf('reftest') !== -1;
|
||||
$.extend(
|
||||
{
|
||||
logging: true,
|
||||
proxy: 'http://localhost:8082',
|
||||
proxy: 'http://localhost:8081/proxy',
|
||||
useCORS: false,
|
||||
removeContainer: false,
|
||||
target: targets
|
||||
|
Reference in New Issue
Block a user