Commit c29af6de by Kang Donghun

インデント修正

parent a3f92984
...@@ -307,29 +307,29 @@ function Coview_moveToVideoShareArea() { ...@@ -307,29 +307,29 @@ function Coview_moveToVideoShareArea() {
} }
function Coview_exitCollaboration(isDocument = false) { function Coview_exitCollaboration(isDocument = false) {
if (isDocument) { if (isDocument) {
if (CHAT_UTIL.isIOS()) { if (CHAT_UTIL.isIOS()) {
webkit.messageHandlers.exitMeetingRoom.postMessage({}); webkit.messageHandlers.exitMeetingRoom.postMessage({});
} else if (CHAT_UTIL.isAndroid()) { } else if (CHAT_UTIL.isAndroid()) {
android.exitMeetingRoom(); android.exitMeetingRoom();
}
} }
clearInterval(timeInterval); }
coview_api.LeaveRoom(); clearInterval(timeInterval);
if (coview_api.getRoomUsers()) { android.finishCollaboration() }; coview_api.LeaveRoom();
isLeaved = true; if (coview_api.getRoomUsers()) { android.finishCollaboration() };
if (collaborationJoinFlg != '2') { isLeaved = true;
CHAT_UI.joinRoom( if (collaborationJoinFlg != '2') {
CHAT.globalLoginParameter.roomId, CHAT_UI.joinRoom(
CHAT.globalLoginParameter.name CHAT.globalLoginParameter.roomId,
); CHAT.globalLoginParameter.name
);
} else {
if (typeof android != "undefined") {
android.openCommunicationHome();
} else { } else {
if (typeof android != "undefined") { webkit.messageHandlers.openCommunicationHome.postMessage({});
android.openCommunicationHome();
} else {
webkit.messageHandlers.openCommunicationHome.postMessage({});
}
} }
}
} }
function Coview_changeHost(userId) { function Coview_changeHost(userId) {
...@@ -351,25 +351,25 @@ function Coview_connect_audio_collaboration() { ...@@ -351,25 +351,25 @@ function Coview_connect_audio_collaboration() {
} }
function hostSearchInterval() { function hostSearchInterval() {
let hostName = ""; let hostName = "";
function hostSearch() { function hostSearch() {
if (hostName != g_isMainManUsername) { if (hostName != g_isMainManUsername) {
if (hostName != "") { if (hostName != "") {
$("#collaboration_user_" + hostName).removeClass("host"); $("#collaboration_user_" + hostName).removeClass("host");
} }
$("#collaboration_user_" + g_isMainManUsername).addClass("host"); $("#collaboration_user_" + g_isMainManUsername).addClass("host");
hostName = g_isMainManUsername; hostName = g_isMainManUsername;
} else { } else {
if (hostName == "") { if (hostName == "") {
if (!$("#collaboration_user_" + CHAT.globalLoginParameter.loginId).hasClass("host") && coview_api.getRoomUsers()) { if (!$("#collaboration_user_" + CHAT.globalLoginParameter.loginId).hasClass("host") && coview_api.getRoomUsers()) {
$("#collaboration_user_" + CHAT.globalLoginParameter.loginId).addClass("host"); $("#collaboration_user_" + CHAT.globalLoginParameter.loginId).addClass("host");
}
} else {
if (!$("#collaboration_user_" + hostName).hasClass('host')) {
$("#collaboration_user_" + hostName).addClass("host");
}
}
} }
} else {
if (!$("#collaboration_user_" + hostName).hasClass('host')) {
$("#collaboration_user_" + hostName).addClass("host");
}
}
} }
timeInterval = setInterval(hostSearch, 3000); }
timeInterval = setInterval(hostSearch, 3000);
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment