Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix: 修复环信访问协议判断
Browse files Browse the repository at this point in the history
  • Loading branch information
boxshadow committed Apr 14, 2018
1 parent 271ede7 commit bc8f516
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/easemob/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const connect = token => {
let conn = new webim.connection({
isMultiLoginSessions: config.isMultiLoginSessions,
https:
typeof config.https === "boolean"
typeof config.https === false
? config.https
: location.protocol === "https:",
url: config.xmppURL,
Expand Down Expand Up @@ -43,7 +43,6 @@ export const connect = token => {
vuex.dispatch("PUSH_NEW_MESSAGE", singleChatMsg);
},
onEmojiMessage: message => {
console.log("Emoji");
var data = message.data;
for (var i = 0, l = data.length; i < l; i++) {
console.log(data[i]);
Expand Down Expand Up @@ -86,7 +85,6 @@ export const connect = token => {
pwd: token,
appKey: config.appkey,
success: function(res) {
console.log(res);
var tokenAccess = res.access_token;
webim.utils.setCookie("webim_" + mid, tokenAccess, 1);
},
Expand Down

0 comments on commit bc8f516

Please sign in to comment.