소스 검색

Also fetch manifest property again (#92)

Paulus Schoutsen 3 년 전
부모
커밋
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",
     () => {