mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fix missing jsonp feature with grunt-contrib-connect
This commit is contained in:
parent
c9993a7237
commit
075c836d16
@ -74,6 +74,12 @@ module.exports = function(grunt) {
|
|||||||
port: 8082,
|
port: 8082,
|
||||||
middleware: function(connect, options) {
|
middleware: function(connect, options) {
|
||||||
return [
|
return [
|
||||||
|
function(req, res, next) {
|
||||||
|
res.jsonp = function(content) {
|
||||||
|
res.end(req.query.callback + "(" + JSON.stringify(content) + ")");
|
||||||
|
};
|
||||||
|
next();
|
||||||
|
},
|
||||||
proxy()
|
proxy()
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user