"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _querystring = _interopRequireDefault(require("querystring"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var getUrlParam = function getUrlParam(key) {
  var href = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.href;
  var params = _querystring["default"].parse(href.split('?')[1]);
  return key ? params[key] : params;
};
var _default = exports["default"] = getUrlParam;
//# sourceMappingURL=getUrlParam.js.map
