easemob.im-1.0.5.js 里判断协议头时 出现问题
判断https 还是 http时 根本不起作用
建议 全部改成
文件:easemob.im-1.0.5.js 或 easemob.im-1.0.4.js 都有问题
418行
var prefix = options.https ? 'https' : 'http';改成
var prefix = location.protocol == 'https:' ? 'https' : 'http';924行
var https = options.https;
var url = https ? 'https://a1.easemob.com' : 'http://a1.easemob.com';改成
var url = location.protocol == 'https:' ? 'https://a1.easemob.com' : 'http://a1.easemob.com';1125、1124行(看版本决定)
var prefix = options.https ? 'https' : 'http';
改成
var prefix = location.protocol == 'https:' ? 'https' : 'http';删掉 1127行
this.https = options.https || false;1202、1199行(看版本决定)
var loginUrl = this.https ? "https://a1.easemob.com" : "http://a1.easemob.com";改成
var loginUrl = location.protocol == 'https:' ? "https://a1.easemob.com" : "http://a1.easemob.com";
建议 全部改成
文件:easemob.im-1.0.5.js 或 easemob.im-1.0.4.js 都有问题
418行
var prefix = options.https ? 'https' : 'http';改成
var prefix = location.protocol == 'https:' ? 'https' : 'http';924行
var https = options.https;
var url = https ? 'https://a1.easemob.com' : 'http://a1.easemob.com';改成
var url = location.protocol == 'https:' ? 'https://a1.easemob.com' : 'http://a1.easemob.com';1125、1124行(看版本决定)
var prefix = options.https ? 'https' : 'http';
改成
var prefix = location.protocol == 'https:' ? 'https' : 'http';删掉 1127行
this.https = options.https || false;1202、1199行(看版本决定)
var loginUrl = this.https ? "https://a1.easemob.com" : "http://a1.easemob.com";改成
var loginUrl = location.protocol == 'https:' ? "https://a1.easemob.com" : "http://a1.easemob.com";
没有找到相关结果
已邀请:
5 个回复
文龙
soloa1984
文龙
想的是让开发者主动打开开关,你这个变成自动检测了
楼上说的对,但还是自己检测比较好
文件:index.html
https : false,改成
https : window.location.protocol == 'https:' ? true : false,
文龙
soloa1984