text: /* global window */
  import URL from "url-parse";
  
  export function newRequest() {
    return new window.XMLHttpRequest();
  }
  
  export function resolveUrl(origin, link) {
    return new URL(link, origin).toString();
  }
  