통합인증 : 브라우저로 접근한 모바일에서도 정상적으로 작동하게끔 스크립트 수정

This commit is contained in:
projectSylas
2022-01-07 04:49:26 +00:00
parent 2f6096f6a8
commit ce7e5b2c3d
3 changed files with 1 additions and 13 deletions

View File

@ -128,11 +128,6 @@ function popup_center() {
let _width = 400;
let _height = 620;
var xPos = (document.body.offsetWidth/2) - (_width/2); // 가운데 정렬
xPos += window.screenLeft; // 듀얼 모니터일 때
if( navigator.userAgent.indexOf("Android") > - 1 || navigator.userAgent.indexOf("iPhone") > - 1 ) // 모바일일때
{
return window;
}else {
xPos += window.screenLeft; // 듀얼 모니터일 때
return window.open("", "sa_popup", "width="+_width+", height="+_height+", left="+xPos+", menubar=yes, status=yes, titlebar=yes, resizable=yes");
}
}

View File

@ -92,7 +92,6 @@ if ($config['cf_cert_use'] && ($config['cf_cert_sa'] || $config['cf_cert_ipin']
params = "?directAgency=" + type + "&" + pageTypeParam;
request_url = url + params;
call_sa(request_url);
break;
});
<?php } ?>

View File

@ -91,12 +91,6 @@ include_once(G5_PATH.'/head.sub.php');
<script>
jQuery(function($) {
var $opener = window.opener;
if (typeof g5_is_mobile != "undefined" && g5_is_mobile ) {
$opener = window.parent;
is_mobile = true;
} else {
$opener = window.opener;
}
// 인증정보
$opener.$("input[name=cert_type]").val("<?php echo $cert_type; ?>");