Browse Source

fix(router): error handling for use in non-desk environment(marketplace) (#6848)

version-14
Karthikeyan S 6 years ago
committed by Rushabh Mehta
parent
commit
bd196ac43b
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      frappe/public/js/frappe/router.js

+ 3
- 1
frappe/public/js/frappe/router.js View File

@@ -57,7 +57,9 @@ frappe.route = function() {
} else {
// show page
const route_name = frappe.utils.xss_sanitise(route[0]);
frappe.views.pageview.show(route_name);
if (frappe.views.pageview) {
frappe.views.pageview.show(route_name);
}
}
} else {
// Show desk


Loading…
Cancel
Save