浏览代码

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",
     () => {