Browse Source

Also fetch manifest property again (#92)

Paulus Schoutsen 3 years ago
parent
commit
e8288b8425
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/connect.ts

+ 1 - 1
src/connect.ts

@@ -18,7 +18,7 @@ export const connect = async (button: InstallButton) => {
 
   const el = document.createElement("ewt-install-dialog");
   el.port = port;
-  el.manifestPath = button.getAttribute("manifest")!;
+  el.manifestPath = button.manifest || button.getAttribute("manifest")!;
   el.addEventListener(
     "closed",
     () => {