[fix] move socket init inside app init
This commit is contained in:
parent
8c41204877
commit
c6317148bc
2 changed files with 1 additions and 2 deletions
|
|
@ -23,6 +23,7 @@ frappe.Application = Class.extend({
|
|||
},
|
||||
startup: function() {
|
||||
frappe.model.init();
|
||||
frappe.socket.init();
|
||||
this.load_bootinfo();
|
||||
this.make_nav_bar();
|
||||
this.set_favicon();
|
||||
|
|
|
|||
|
|
@ -125,8 +125,6 @@ frappe.socket = {
|
|||
}
|
||||
}
|
||||
|
||||
$(frappe.socket.init);
|
||||
|
||||
frappe.provide("frappe.realtime");
|
||||
frappe.realtime.on = function(event, callback) {
|
||||
frappe.socket.socket.on(event, callback);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue