mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
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:
parent
02cc418969
commit
f21c89cf1a
@ -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>
|
||||
|
@ -281,6 +281,7 @@ export interface IframeCardConfig extends LovelaceCardConfig {
|
||||
allow_open_top_navigation?: boolean;
|
||||
aspect_ratio?: string;
|
||||
title?: string;
|
||||
allow?: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user