/** @odoo-module **/

import { WebClient } from "@web/webclient/webclient";
import { patch } from "@web/core/utils/patch";

patch(WebClient.prototype, {
    setup() {
        super.setup();
        this.title.setParts({ brand: "Chennora" });

        // Redirect to main dashboard if landing on backend root (common after module upgrade/install)
        const hash = window.location.hash;
        if (!hash || hash === "#home") {
            window.location.href = "/";
        }
    }
});

