Pārlūkot izejas kodu

Also fetch manifest property again (#92)

Paulus Schoutsen 3 gadi atpakaļ
vecāks
revīzija
e8288b8425
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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",
     () => {