Sha256: 16008a780c8e83771fce685d3702fe988b879929666114babce276d49fc22d2d
Contents?: true
Size: 999 Bytes
Versions: 24
Compression:
Stored size: 999 Bytes
Contents
(function (context) { /** * @namespace Retreaver */ var Retreaver = { /** * Configure the retreaver client library. * @function configure * @memberof Retreaver * @param {Object} options * @param {String} options.host - Retreaver API Host * @param {String} options.prefix - http or https * @example * Retreaver.configure({host: 'api.rtvrapi.com', prefix: 'https'}); * */ configure: function (options) { var params = { addr: options.host, http_prefix: 'http', urlregex: "/\\/\\/[^\\/]*\\/(.*)/" }; // check for http prefix if (typeof(options.prefix) !== 'undefined') { params.http_prefix = options.prefix; } window.Retreaver._connection = new Retreaver.Base.Request(params); } }; context.Retreaver = Retreaver; })(window);
Version data entries
24 entries across 24 versions & 1 rubygems