mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-10 01:47:46 +00:00
parent
60a18185d7
commit
4f61d5689b
@ -1442,10 +1442,11 @@ export class HaConfigDevicePage extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async _signUrl(ev) {
|
private async _signUrl(ev) {
|
||||||
const signedUrl = await getSignedPath(
|
const a = ev.currentTarget.getAttribute("href")
|
||||||
this.hass,
|
? ev.currentTarget
|
||||||
ev.currentTarget.getAttribute("href")
|
: ev.currentTarget.closest("a");
|
||||||
);
|
|
||||||
|
const signedUrl = await getSignedPath(this.hass, a.getAttribute("href"));
|
||||||
fileDownload(signedUrl.path);
|
fileDownload(signedUrl.path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user