Make allow attribute configurable in iframe panel (#19087)

* 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 <polletquentin74@me.com>

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

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

Co-authored-by: Quentame <polletquentin74@me.com>

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

Co-authored-by: Quentame <polletquentin74@me.com>

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

Co-authored-by: Quentame <polletquentin74@me.com>

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

Co-authored-by: Bram Kragten <mail@bramkragten.nl>

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

* Restore dev

* Update ha-panel-iframe.ts

* Prettier

---------

Co-authored-by: Quentame <polletquentin74@me.com>
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Thomas Steiner 2024-04-15 14:48:57 +02:00 committed by GitHub
parent 02cc418969
commit f21c89cf1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -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>

View File

@ -281,6 +281,7 @@ export interface IframeCardConfig extends LovelaceCardConfig {
allow_open_top_navigation?: boolean;
aspect_ratio?: string;
title?: string;
allow?: string;
url: string;
}