[fix] move socket init inside app init

This commit is contained in:
Rushabh Mehta 2015-08-21 17:06:09 +05:30
parent c6317148bc
commit b39c9a5318
2 changed files with 2 additions and 1 deletions

View file

@ -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();

View file

@ -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];
}