|
12345678910111213141516171819 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- const url_1 = require("url");
- /**
- * Helper class for getting the URL relative to a Location object.
- */
- class RelativeURL {
- /**
- * Returns a URL relative to the given Location object.
- *
- * @param location Location.
- * @param url URL.
- */
- static getAbsoluteURL(location, url) {
- return new url_1.URL(url, location.href);
- }
- }
- exports.default = RelativeURL;
- //# sourceMappingURL=RelativeURL.js.map
|