Merge pull request #37557 from sokumon/chat-popup
This commit is contained in:
commit
ccecfe8b88
2 changed files with 1 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue