proactive-http-fetch
Version:
Proactive http fetch package
13 lines • 390 B
JavaScript
export class BrowserLocation {
redirect(response) {
if (response instanceof Response === false)
return;
if (response.status === 401 || response.status === 403)
this.change(response.url);
}
change(url) {
if (!!window.location)
window.location.href = url;
}
}
//# sourceMappingURL=browser-location.js.map