@rws-air/utils
Version:
Utilities for rws-air libraries and applications
31 lines • 825 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WindowLocationService = void 0;
class WindowLocationService {
static get origin() {
return this.getLocation().origin;
}
static get path() {
return this.getLocation().pathname;
}
static get hash() {
return this.getLocation().hash;
}
static get search() {
return this.getLocation().search;
}
static get host() {
return this.getLocation().host;
}
static get href() {
return this.getLocation().href;
}
static redirectTo(url) {
this.getLocation().assign(url);
}
static getLocation() {
return window.location;
}
}
exports.WindowLocationService = WindowLocationService;
//# sourceMappingURL=WindowLocationService.js.map