You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MobWrite
Hi Neil,
this is a suggestion to improve the way Mobwrites handles the sync
gateway
If we use an absolute URL as the syncGateway Mobwrite will try to
connect using JSONP to the server.
The problem is that the absolute URL can point to the same server
where the client is running, so I think the best way to handle it is
to detect at the client the URL and set remote to true if is not the
same that the configured in syncGateway. See the code bellow to see
how it works now
var remote = (mobwrite.syncGateway.indexOf('://') != -1);