Merge pull request #37557 from sokumon/chat-popup

This commit is contained in:
Soham Kulkarni 2026-02-26 12:11:30 +05:30 committed by GitHub
commit ccecfe8b88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View file

@ -548,7 +548,6 @@ class DesktopPage {
frappe.router.on("change", function () {
if (frappe.get_route()[0] == "desktop" || frappe.get_route()[0] == "") {
me.setup_navbar();
me.setup_edit_button();
} else {
$(".navbar").show();
frappe.desktop_utils.close_desktop_modal();

View file

@ -92,7 +92,7 @@ function addChatBubble() {
const all_apps = frappe.utils.get_installed_apps();
const desk_apps = ["erpnext", "hrms"];
const apps_allowed = frappe.utils.is_sub_array(all_apps, desk_apps);
const apps_allowed = desk_apps.some((app) => all_apps.includes(app));
if (checkBusinessHours && apps_allowed) {
let chat_banner = document.createElement("script");
chat_banner.innerHTML =