TryGhost/Ghost

View on GitHub
ghost/admin/app/utils/window-proxy.js

Summary

Maintainability
A
0 mins
Test Coverage
export default {
    changeLocation(url) {
        window.location = url;
    },

    replaceLocation(url) {
        window.location.replace(url);
    },

    replaceState(params, title, url) {
        window.history.replaceState(params, title, url);
    },

    reload() {
        window.location.reload();
    }
};