[fix] move socket init inside app init
This commit is contained in:
parent
c6317148bc
commit
b39c9a5318
2 changed files with 2 additions and 1 deletions
|
|
@ -22,8 +22,8 @@ frappe.Application = Class.extend({
|
|||
this.startup();
|
||||
},
|
||||
startup: function() {
|
||||
frappe.model.init();
|
||||
frappe.socket.init();
|
||||
frappe.model.init();
|
||||
this.load_bootinfo();
|
||||
this.make_nav_bar();
|
||||
this.set_favicon();
|
||||
|
|
|
|||
|
|
@ -131,6 +131,7 @@ function get_site_name(socket) {
|
|||
}
|
||||
|
||||
function get_hostname(url) {
|
||||
if (!url) return undefined;
|
||||
if (url.indexOf("://") > -1) {
|
||||
url = url.split('/')[2];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue