thelounge/client/js/location.ts

8 lines
217 B
TypeScript
Raw Normal View History

// This is a thin wrapper around `window.location`, in order to contain the
// side-effects. Do not add logic to it as it cannot be tested, only mocked.
2019-11-16 17:24:03 +00:00
export default {
reload() {
window.location.reload();
},
};