Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…eb-dashboard into master
  • Loading branch information
manuelmitasch committed Nov 22, 2022
2 parents 4621c7a + 80ba7d3 commit e2c27ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/iframe-container.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
@control={{@control}}
@showLabel={{ this.showLabel }}
>
<iframe src={{@control.url}} width={{@control.width}} height={{@control.height}} />
<iframe src={{@control.parsedUrl}} width={{@control.width}} height={{@control.height}} />
{{yield}}
</ControlContainer>
4 changes: 4 additions & 0 deletions app/models/iframe-container.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ import Control from './control';

export default class TextureControl extends Control {
@attr("string") url

get parsedUrl() {
return this.url.replace("{localhost}", window.location.hostname);
}
}

0 comments on commit e2c27ed

Please sign in to comment.