diff --git a/frappe/public/js/frappe/router.js b/frappe/public/js/frappe/router.js index 31b3a26374..7a4f6379a0 100644 --- a/frappe/public/js/frappe/router.js +++ b/frappe/public/js/frappe/router.js @@ -13,6 +13,10 @@ frappe.view_factories = []; frappe.route_options = null; frappe.route = function() { + + // Application is not yet initiated + if (!frappe.app) return; + if(frappe.re_route[window.location.hash] !== undefined) { // after saving a doc, for example, // "New DocType 1" and the renamed "TestDocType", both exist in history diff --git a/frappe/public/js/frappe/social/components/PostLoader.vue b/frappe/public/js/frappe/social/components/PostLoader.vue index b02c92d67a..fcc08c4818 100644 --- a/frappe/public/js/frappe/social/components/PostLoader.vue +++ b/frappe/public/js/frappe/social/components/PostLoader.vue @@ -1,10 +1,12 @@