diff --git a/build/index.js b/build/index.js index a306dd0..65ed030 100644 --- a/build/index.js +++ b/build/index.js @@ -61,6 +61,7 @@ function jsonp(url, options) { } url += serialize(params); url = url.replace('?&', '?'); + return url; } promise = new Promise(function (resolve, reject) { diff --git a/package.json b/package.json index ae3b40c..0e315f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simple-jsonp-promise", - "version": "1.0.7", + "version": "1.0.8", "description": "", "main": "build/index.js", "scripts": { diff --git a/src/index.js b/src/index.js index d1d00db..4096183 100644 --- a/src/index.js +++ b/src/index.js @@ -54,6 +54,7 @@ function jsonp(url, options) { if (!~url.indexOf('?')) { url += '?'; } url += serialize(params); url = url.replace('?&', '?'); + return url; } promise = new Promise((resolve, reject) => {