'use strict';

var _commonjsHelpers = require('../../_virtual/_commonjsHelpers.js');
var fetchNpmNode = require('../../_virtual/fetch-npm-node.js');
var index = require('../../_virtual/index3.js');

(function (module) {

	var realFetch = index;
	module.exports = function(url, options) {
		if (/^\/\//.test(url)) {
			url = 'https:' + url;
		}
		return realFetch.call(this, url, options);
	};

	if (!_commonjsHelpers.commonjsGlobal.fetch) {
		_commonjsHelpers.commonjsGlobal.fetch = module.exports;
		_commonjsHelpers.commonjsGlobal.Response = realFetch.Response;
		_commonjsHelpers.commonjsGlobal.Headers = realFetch.Headers;
		_commonjsHelpers.commonjsGlobal.Request = realFetch.Request;
	} 
} (fetchNpmNode.__module));
