Skip to content

Commit

Permalink
fix: iframe code url generation
Browse files Browse the repository at this point in the history
  • Loading branch information
gion-andri committed Jan 16, 2024
1 parent b6acb41 commit 5023c40
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class IframeCodeGeneratorComponent implements OnInit {
params.push('regions=' + this.selectedRegions.join(','));
}
if (this.selectedGenres.length > 0) {
params.push('regions=' + this.selectedRegions.join(','));
params.push('genres=' + this.selectedRegions.join(','));
}
if (this.searchTerm != '') {
params.push('searchTerm=' + encodeURI(this.searchTerm));
Expand All @@ -59,7 +59,6 @@ export class IframeCodeGeneratorComponent implements OnInit {
}

this.url = url + '?' + params.join('&');

this.code = `<iframe id="chalender-iframe" src="${this.url}"></iframe>
<script>
function handleIframeMessage(event) {
Expand Down

0 comments on commit 5023c40

Please sign in to comment.