diff --git a/Client/src/app/components/popups/share-popup/share-popup.component.ts b/Client/src/app/components/popups/share-popup/share-popup.component.ts index 2fa760a..fb02941 100644 --- a/Client/src/app/components/popups/share-popup/share-popup.component.ts +++ b/Client/src/app/components/popups/share-popup/share-popup.component.ts @@ -31,10 +31,10 @@ export class SharePopupComponent implements OnInit { let port = this.document.location.port ? ":"+this.document.location.port : ""; this.shareUrl = this.document.location.protocol +'//'+ this.document.location.hostname + port + this.shareBaseUrl + data.prefix + this.id; if (this.data.prefix === 'o') { - const shareData = encodeURIComponent(JSON.stringify(this.data.otherData)); - console.log(shareData); + const str = JSON.stringify(this.data.otherData); + const encoded = encodeURIComponent(str); + const shareData = encoded; this.shareUrl = this.document.location.protocol + '//' + this.document.location.hostname + port + this.shareBaseUrl + data.prefix + shareData; - console.log(this.shareUrl); } this.facebookIframeUrl = this.urlPartA + this.shareUrl + this.urlPartB; this.twitterUrl = this.twitterPartA + data.title + " - " + data.description + "&url=" + this.shareUrl;