Commit 06755e21 by Lee Munkyeong

コードレビュー対応

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