This commit is contained in:
zuiidea
2017-01-18 22:10:13 +08:00
parent ff2005d262
commit eb78f6c226
2 changed files with 2 additions and 9 deletions
-7
View File
@@ -1,12 +1,5 @@
const Ajax = require('robe-ajax')
/**
* Requests a URL, returning a promise.
*
* @param {string} url The URL we want to request
* @param {object} [options] The options we want to pass to "fetch"
* @return {object} An object containing either "data" or "err"
*/
export default function request (url, options) {
if (options.cross) {
return Ajax.getJSON('http://query.yahooapis.com/v1/public/yql', {