版博士V2.0程序
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

RelativeURL.js 512 B

12345678910111213141516171819
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const url_1 = require("url");
  4. /**
  5. * Helper class for getting the URL relative to a Location object.
  6. */
  7. class RelativeURL {
  8. /**
  9. * Returns a URL relative to the given Location object.
  10. *
  11. * @param location Location.
  12. * @param url URL.
  13. */
  14. static getAbsoluteURL(location, url) {
  15. return new url_1.URL(url, location.href);
  16. }
  17. }
  18. exports.default = RelativeURL;
  19. //# sourceMappingURL=RelativeURL.js.map