Commit 06755e21 by Lee Munkyeong

コードレビュー対応

parent 4acb8d62
......@@ -2563,23 +2563,14 @@ 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 (typeof coview_api == "undefined") { return }
var alertString = "";
if (g_isMainMan) {
alert(getLocalizedString("err_weak_network_exit_collaboration"));
if (collaborationJoinFlg != '2') {
CHAT_UI.joinRoom(
CHAT.globalLoginParameter.roomId,
CHAT.globalLoginParameter.name
);
alertString = getLocalizedString("err_weak_network_exit_collaboration")
} else {
if (typeof android != "undefined") {
android.openCommunicationHome();
} else {
webkit.messageHandlers.openCommunicationHome.postMessage({});
}
alertString = getLocalizedString("err_weak_network_exit_collaboration")
}
} else {
alert(getLocalizedString("inform_exit_host_collaboration"));
alert(alertString);
if (collaborationJoinFlg != '2') {
CHAT_UI.joinRoom(
CHAT.globalLoginParameter.roomId,
......@@ -2592,8 +2583,6 @@ CHAT_UI.refreshForOffline = function() {
webkit.messageHandlers.openCommunicationHome.postMessage({});
}
}
}
}
}
CHAT_UI.offlineHandler = function(e) {
......
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