Merge pull request #32833 from sokumon/toolbar-issue

fix: add check if toolbar exists
This commit is contained in:
Soham Kulkarni 2025-06-07 16:07:33 +05:30 committed by GitHub
commit 7bcac9d419
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 1 deletions

View file

@ -182,6 +182,7 @@ frappe.Application = class Application {
}
frappe.router.on("change", () => {
$(".tooltip").hide();
if (frappe.frappe_toolbar && frappe.is_mobile()) frappe.frappe_toolbar.show_app_logo();
});
}

View file

@ -125,7 +125,6 @@ frappe.router = {
// resolve the route from the URL or hash
// translate it so the objects are well defined
// and render the page as required
frappe.frappe_toolbar.show_app_logo();
if (!frappe.app) return;
let sub_path = this.get_sub_path();