Skip to content

Commit

Permalink
Make allow attribute configurable in iframe panel (#19087)
Browse files Browse the repository at this point in the history
* Make allow attribute configurable in iframe panel

* Delete .vscode/settings.json

* Update ha-panel-iframe.ts

* Don't quote

* Update src/panels/iframe/ha-panel-iframe.ts

Co-authored-by: Quentame <[email protected]>

* Make `allow` configurable for `hui-iframe-card`

* Update src/panels/iframe/ha-panel-iframe.ts

Co-authored-by: Quentame <[email protected]>

* Update src/panels/lovelace/cards/hui-iframe-card.ts

Co-authored-by: Quentame <[email protected]>

* Update src/panels/iframe/ha-panel-iframe.ts

Co-authored-by: Quentame <[email protected]>

* Update src/panels/lovelace/cards/hui-iframe-card.ts

Co-authored-by: Bram Kragten <[email protected]>

* Delete src/panels/iframe/ha-panel-iframe.ts

* Restore dev

* Update ha-panel-iframe.ts

* Prettier

---------

Co-authored-by: Quentame <[email protected]>
Co-authored-by: Bram Kragten <[email protected]>
  • Loading branch information
3 people authored Apr 15, 2024
1 parent 02cc418 commit f21c89c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/panels/lovelace/cards/hui-iframe-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class HuiIframeCard extends LitElement implements LovelaceCard {
title=${ifDefined(this._config.title)}
src=${this._config.url}
.sandbox=${`${sandbox_user_params} ${IFRAME_SANDBOX}`}
allow="fullscreen"
allow=${this._config.allow ?? "fullscreen"}
></iframe>
</div>
</ha-card>
Expand Down
1 change: 1 addition & 0 deletions src/panels/lovelace/cards/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ export interface IframeCardConfig extends LovelaceCardConfig {
allow_open_top_navigation?: boolean;
aspect_ratio?: string;
title?: string;
allow?: string;
url: string;
}

Expand Down

0 comments on commit f21c89c

Please sign in to comment.