Skip to content

Commit 100eff4

Browse files
committed
Adds prefix to jsonp callbacks
- Prevents collision with libraries using the default prefix - See duojs/test#69 Signed-off-by: Christopher Rogers <[email protected]>
1 parent d4cfc00 commit 100eff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/recurly.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Recurly.prototype.jsonp = function (route, data, done) {
229229

230230
var url = this.url(route) + '?' + qs.stringify(data);
231231

232-
jsonp(url, { timeout: this.config.timeout }, function (err, res) {
232+
jsonp(url, { timeout: this.config.timeout, prefix: '__rjs' }, function (err, res) {
233233
if (err) return done(err);
234234
if (res.error) {
235235
done(errors('api-error', res.error));

0 commit comments

Comments
 (0)