1
0
Эх сурвалжийг харах

Also fetch manifest property again (#92)

Paulus Schoutsen 3 жил өмнө
parent
commit
e8288b8425
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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",
     () => {