mirror of
https://github.com/esphome/esp-web-tools.git
synced 2025-07-28 14:16:41 +00:00
Actually support the manifest property
This commit is contained in:
parent
625fa87ec4
commit
ba15c4360a
@ -1,6 +1,8 @@
|
||||
class InstallButton extends HTMLElement {
|
||||
public static isSupported = "serial" in navigator;
|
||||
|
||||
public manifest?: string;
|
||||
|
||||
public eraseFirst?: boolean;
|
||||
|
||||
private renderRoot?: ShadowRoot;
|
||||
@ -26,7 +28,7 @@ class InstallButton extends HTMLElement {
|
||||
});
|
||||
this.addEventListener("click", async (ev) => {
|
||||
ev.preventDefault();
|
||||
const manifest = this.getAttribute("manifest");
|
||||
const manifest = this.manifest || this.getAttribute("manifest");
|
||||
if (!manifest) {
|
||||
alert("No manifest defined!");
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user