Merge pull request #32833 from sokumon/toolbar-issue
fix: add check if toolbar exists
This commit is contained in:
commit
7bcac9d419
2 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue