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) {
|
||||
const signedUrl = await getSignedPath(
|
||||
this.hass,
|
||||
ev.currentTarget.getAttribute("href")
|
||||
);
|
||||
const a = ev.currentTarget.getAttribute("href")
|
||||
? ev.currentTarget
|
||||
: ev.currentTarget.closest("a");
|
||||
|
||||
const signedUrl = await getSignedPath(this.hass, a.getAttribute("href"));
|
||||
fileDownload(signedUrl.path);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user