Merge pull request #1894 from netchampfaris/mobile-fix
set frappe.socket.socket for mobile app
This commit is contained in:
commit
9dc3502762
1 changed files with 3 additions and 0 deletions
|
|
@ -17,6 +17,9 @@ frappe.socket = {
|
|||
else if (window.location.protocol == "http:") {
|
||||
frappe.socket.socket = io.connect(frappe.socket.get_host());
|
||||
}
|
||||
else if (window.location.protocol == "file:") {
|
||||
frappe.socket.socket = io.connect(window.localStorage.server);
|
||||
}
|
||||
|
||||
if (!frappe.socket.socket) {
|
||||
console.log("Unable to connect to " + frappe.socket.get_host());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue