|
|
@@ -1582,12 +1582,22 @@ function sendSns(sns, url, txt, media, description)
|
|
|
switch(sns)
|
|
|
{
|
|
|
case 'facebook':
|
|
|
- var faceUrl = _isApp == 'true' ? 'public://?link=http://www.facebook.com/sharer/sharer.php?u=' : 'http://www.facebook.com/sharer/sharer.php?u=';
|
|
|
- window.open(faceUrl + _url, "_blank", 'width=600,height=400,resizable=yes,scrollbars=yes');
|
|
|
+ var faceUrl = 'http://www.facebook.com/sharer/sharer.php?u=';
|
|
|
+
|
|
|
+ if (_isApp != null && _isApp == 'true') {
|
|
|
+ location.href = 'public://?link=' + faceUrl + _url;
|
|
|
+ } else {
|
|
|
+ window.open(faceUrl + _url, "_blank", 'width=600,height=400,resizable=yes,scrollbars=yes');
|
|
|
+ }
|
|
|
break;
|
|
|
case 'twitter':
|
|
|
- var twitUrl = _isApp == 'true' ? 'public://?link=http://twitter.com/intent/tweet?text=' : 'http://twitter.com/intent/tweet?text=';
|
|
|
- window.open(twitUrl + _txt + '&url=' + _url, "_blank", 'width=600,height=400,resizable=yes,scrollbars=yes');
|
|
|
+ var twitUrl = 'http://twitter.com/intent/tweet?text=';
|
|
|
+
|
|
|
+ if (_isApp != null && _isApp == 'true') {
|
|
|
+ location.href = 'public://?link=' + twitUrl + _txt;
|
|
|
+ } else {
|
|
|
+ window.open(faceUrl + _txt + '&url=' + _url, "_blank", 'width=600,height=400,resizable=yes,scrollbars=yes');
|
|
|
+ }
|
|
|
break;
|
|
|
default:
|
|
|
mcxDialog.alert('지원하지 않는 SNS입니다.');
|