Commit 06755e21 by Lee Munkyeong

コードレビュー対応

parent 4acb8d62
......@@ -2563,35 +2563,24 @@ CHAT_UI.refreshForOffline = function() {
$('#room_name_change_button').addClass('ui-state-disabled');
$('#add_user_button').addClass('ui-state-disabled');
$('.fa-download').hide();
if (typeof coview_api != "undefined") {
if (g_isMainMan) {
alert(getLocalizedString("err_weak_network_exit_collaboration"));
if (collaborationJoinFlg != '2') {
CHAT_UI.joinRoom(
CHAT.globalLoginParameter.roomId,
CHAT.globalLoginParameter.name
);
} else {
if (typeof android != "undefined") {
android.openCommunicationHome();
} else {
webkit.messageHandlers.openCommunicationHome.postMessage({});
}
}
if (typeof coview_api == "undefined") { return }
var alertString = "";
if (g_isMainMan) {
alertString = getLocalizedString("err_weak_network_exit_collaboration")
} else {
alertString = getLocalizedString("err_weak_network_exit_collaboration")
}
alert(alertString);
if (collaborationJoinFlg != '2') {
CHAT_UI.joinRoom(
CHAT.globalLoginParameter.roomId,
CHAT.globalLoginParameter.name
);
} else {
if (typeof android != "undefined") {
android.openCommunicationHome();
} else {
alert(getLocalizedString("inform_exit_host_collaboration"));
if (collaborationJoinFlg != '2') {
CHAT_UI.joinRoom(
CHAT.globalLoginParameter.roomId,
CHAT.globalLoginParameter.name
);
} else {
if (typeof android != "undefined") {
android.openCommunicationHome();
} else {
webkit.messageHandlers.openCommunicationHome.postMessage({});
}
}
webkit.messageHandlers.openCommunicationHome.postMessage({});
}
}
}
......
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